Change double quotes to single quotes for consistency
This commit is contained in:
parent
893f24c88b
commit
cf98f2eb2e
@ -147,9 +147,9 @@ def bom_list(bom: List[BOMEntry]) -> List[List[str]]:
|
|||||||
# Custom mapping from internal name to BOM column headers.
|
# Custom mapping from internal name to BOM column headers.
|
||||||
# Headers not specified here are generated by capitilising the internal name.
|
# Headers not specified here are generated by capitilising the internal name.
|
||||||
bom_headings = {
|
bom_headings = {
|
||||||
"pn": HEADER_PN,
|
'pn': HEADER_PN,
|
||||||
"mpn": HEADER_MPN,
|
'mpn': HEADER_MPN,
|
||||||
"spn": HEADER_SPN,
|
'spn': HEADER_SPN,
|
||||||
}
|
}
|
||||||
return ([[bom_headings.get(k, k.capitalize()) for k in keys]] + # Create header row with key names
|
return ([[bom_headings.get(k, k.capitalize()) for k in keys]] + # Create header row with key names
|
||||||
[[make_str(entry.get(k)) for k in keys] for entry in bom]) # Create string list for each entry row
|
[[make_str(entry.get(k)) for k in keys] for entry in bom]) # Create string list for each entry row
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user