-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] update existing parts #5
Comments
This seems useful. Quickly implemented it, you can update categories via Edit:
Thanks btw! |
Brilliant!!!!!!!!!!!!!!!!!! Works like a charm. It does kick out on a certain part however. Is this an issue with my DB? If so if you can catch/skip the error and let it continue, would be wicked, then I can deal with that specific part on my own.
For anyone else reading this, |
Do you have a full traceback? |
Yes...
|
You can also just install via |
Try again (with the master branch). I'm handling all HTTPErrors now, so this doesn't fix the actual error, but it shouldn't crash anymore. |
Actually I think I also know what the actual problem is. The updating I implemented is somewhat stupid. It just dumps all the part names from the category and imports them. This doesn't ensure the parts actually get updated though. In some cases it might keep the old parts and create new duplicate ones. So maybe wait a bit more until updating everything, I should be able to fix that fairly easily. |
OK, some more insight, an error from my DB:
ChatGPT's take on the error:
|
Sorry, but that's really not helpful. |
No worries, fortunately it handles critique rather unflinchingly lol. |
I mean 'ChatGPT'/"""AI""" in general 🙂 Okay, with |
Closer! It cut out at this part with:
|
Can you run that part again with |
Btw, it's generally a good idea to use DigiKey as the first supplier to check. You can reorder the suppliers in the |
209 characters long to be precise...
|
Good to know! Thnx |
and dead LMAO. |
LOL!, hmm... possible to skip adding link if it's dead? |
|
It's not dead dead, the page loads. Just limited the link to 200 chars now, should be fixed. |
still getting same error for part# 1803277
|
Ahhhh, it's a datasheet link. Gimme a sec. |
Okay, now it should be fixed. |
Running side note, when it says |
If you are running with If you run with Just picking the first part is not really a good idea in many cases. |
made it through about 100 parts, and stopped on this part:
|
Thought I'd have already fixed that one. Guess I missed another edge case, should actually be fixed now 🤞 |
Same error. |
Actually nvm, I might have got it, gimme a sec again ^^ |
I can give you a token and url if you want. |
Ah I see, do you actually need all 3? 🤔 |
Thanks for the offer, let's try it one more time now first, if it doesn't work now, something very weird is going on 😅 |
Hmmm. I suppose not, now that you mention it. However, the different variations are ideal. |
Worked!! I'll run it against the whole DB again... |
Perfect! Thanks for helping to work through all of this btw, your database seems to be a great "integration testsuite" ^^ |
You are most welcome. I can't tell you how much I appreciate your work and effort and responsiveness! Happy to test anything else you might need. Yes my great "integration testsuite" is what you get when you give a noob a youtube video and access to a computer... |
Successfully made it through all parts in my DB 🥇 |
Wohoo! Great, I guess I can close this then ^^ Thanks again and if you run into any more issues, be sure to let me know! |
First off, hats off to the brilliant effort here - thank you!
I am new to Inventree, needed to inventory years of old stock which has now been added (by way of some python btw, I couldn't get the Inventree csv import tools to work for the life of me). Alas, it is all void of datasheet links, parameters, images et al.
Maybe this already exists and I'm not aware of it, but it sure would be handy to have a tool I could run against my existing Inventree DB of bare naked parts, and reach out to the clouds for all the dressings...
for example:
$ inventree-part-import update Electronics/Passives
would update that subcategory.I tried to export my parts to a csv file, which I then tried
$ inventree-part-import parts.csv
. But it only got past a coupla parts before it would trigger #4 and/or #3.Thanks again.
The text was updated successfully, but these errors were encountered: