30350n / inventree_part_import

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

warning: datasheet [...] has invalid file extension 'PDF' #13

Closed ondras12345 closed 7 months ago

ondras12345 commented 7 months ago

I believe the message is coming from here: https://github.com/30350n/inventree_part_import/blob/0eeb99a91d55c5003e3960c58991fe1a287126ae/inventree_part_import/inventree_helpers.py#L147C26-L149

$ inventree-part-import -o tme ESD5Z3.3T1G
(only 1 of 5 available supplier modules are configured)
successfully setup categories!

searching for ESD5Z3.3T1G ...
warning: datasheet 'https://www.tme.eu/Document/71395020f2f7b5f6cf374e0fb9bce274/ESD5Zx-DTE.PDF' has invalid file extension 'PDF'
successfully updated TME part ESD5Z3.3T1G ([redacted])

successfully imported all parts!
30350n commented 7 months ago

Yep exactly, good catch. Also fixed!

ondras12345 commented 7 months ago

Thanks, now it is working.