Plugin to generate BOM + CPL files for JLCPCB, assigning LCSC part numbers directly from the plugin, query the JLCPCB parts database, lookup datasheets and much more.
MIT License
1.08k
stars
102
forks
source link
Use dict_factory in store for better readability #487
I always struggled with al those index numbers scatterd all around the code base and for a long time wanted to improve that.
So I started with the store and introduced a row_factory that returns a dict instead of a list which improves readability throughout the code base a lot.
For example
if self.hide_bom_parts and part[6]:
becomes
if self.hide_bom_parts and part["exclude_from_bom"]:
I always struggled with al those index numbers scatterd all around the code base and for a long time wanted to improve that.
So I started with the store and introduced a row_factory that returns a dict instead of a list which improves readability throughout the code base a lot.
For example
if self.hide_bom_parts and part[6]:
becomes
if self.hide_bom_parts and part["exclude_from_bom"]: