Skip to content

Commit

Permalink
Fix dict_factory issue for all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias Bonauer committed Aug 2, 2024
1 parent bf9de69 commit 64ca6a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions schematicexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ def _update_schematic7(self, path):
lastLoc = m.group(3)
lastRef = value
for part in store_parts:
if value == part[0]:
newLcsc = part[3]
if value == part["reference"]:
newLcsc = part["lcsc"]
break
# if we hit the pin section without finding a LCSC property, add it
m = pinRx.search(inLine)
Expand Down Expand Up @@ -240,8 +240,8 @@ def _update_schematic8(self, path):
# self.logger.info("value %s", value)
lastRef = value
for part in store_parts:
if value == part[0]:
newLcsc = part[3]
if value == part["reference"]:
newLcsc = part["lcsc"]
break
if key == "Sheetfile":
file_name = m.group(2)
Expand Down

0 comments on commit 64ca6a6

Please sign in to comment.