30350n / inventree_part_import

CLI to import parts from suppliers like DigiKey, LCSC, Mouser, etc. to InvenTree
MIT License
24 stars 8 forks source link

Fix LCSC API URL #48

Closed zenermerps closed 1 month ago

zenermerps commented 1 month ago

This commit fixes the LCSC API URL as it currently is not working, the new base URL gives error 404 on the currencies endpoint, so for this endpoint the old URL is used. This fixes #47

zenermerps commented 1 month ago

This only seems to work with LCSC part numbers as search term, will look into it further

zenermerps commented 1 month ago

Using result.get() now to mitigate KeyErrror when used with MPN instead of LCSC product code.

30350n commented 1 month ago

Thanks a lot for tracking this down and creating the PR! This seems to work fine, I only had to adjust the supported currencies again.