Change double quotes to single quotes for consistency

This commit is contained in:
Daniel Rojas 2021-08-29 11:40:36 +02:00
parent 893f24c88b
commit cf98f2eb2e

View File

@ -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