Skip to content

Commit

Permalink
Bug fix and final demo video
Browse files Browse the repository at this point in the history
  • Loading branch information
eeintech committed Apr 14, 2023
1 parent 13852fc commit 2df3452
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Tests | Linting | Publishing](https://github.com/sparkmicro/Ki-nTree/actions/workflows/test_deploy.yaml/badge.svg)](https://github.com/sparkmicro/Ki-nTree/actions)
[![Coverage Status](https://coveralls.io/repos/github/sparkmicro/Ki-nTree/badge.svg?branch=main&service=github)](https://coveralls.io/github/sparkmicro/Ki-nTree?branch=main)

## :fast_forward: [Demo Video](https://youtu.be/ZsU6iZ6KgY4)
## :fast_forward: [Demo Video](https://youtu.be/YeWBqOCb4pw)

<img src="https://raw.githubusercontent.com/sparkmicro/Ki-nTree/main/images/doc/kintree_v1_example.png" width="auto" height="auto">

Expand Down
7 changes: 6 additions & 1 deletion kintree/database/inventree_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,9 +545,14 @@ def inventree_create(part_info: dict, kicad=False, symbol=None, footprint=None,
cprint('[TREE]\tWarning: Failed to upload part image', silent=settings.SILENT)

if kicad:
try:
symbol_name = ipn
except UnboundLocalError:
symbol_name = inventree_part.get('manufacturer_part_number')

# Create symbol & footprint parameters
if symbol:
symbol = f'{symbol.split(":")[0]}:{ipn}'
symbol = f'{symbol.split(":")[0]}:{symbol_name}'
inventree_part['parameters']['Symbol'] = symbol
if footprint:
inventree_part['parameters']['Footprint'] = footprint
Expand Down

0 comments on commit 2df3452

Please sign in to comment.