Give more priority to user defined 'Description' field.

Only using the one from libs if the user didn't define it.
This commit is contained in:
Salvador E. Tropea 2020-08-06 09:02:39 -03:00
parent 3555059f8f
commit 7298a5662f
2 changed files with 3 additions and 2 deletions

View File

@ -260,7 +260,8 @@ class ComponentGroup(object):
self.fields[ColumnList.COL_FP_L] = comp.footprint
self.fields[ColumnList.COL_FP_LIB_L] = comp.footprint_lib
self.fields[ColumnList.COL_SHEETPATH_L] = comp.sheet_path_h
self.fields[ColumnList.COL_DESCRIPTION_L] = comp.desc
if not self.fields[ColumnList.COL_DESCRIPTION_L]:
self.fields[ColumnList.COL_DESCRIPTION_L] = comp.desc
def get_row(self, columns):
""" Return a dict of the KiCad data based on the supplied columns """

View File

@ -71,7 +71,7 @@ class ColumnList:
COL_VALUE_L: 1,
COL_PART_L: 1,
COL_PART_LIB_L: 1,
COL_DESCRIPTION_L: 1,
#COL_DESCRIPTION_L: 1,
COL_DATASHEET_L: 1,
COL_SHEETPATH_L: 1,
COL_FP_L: 1,