Skip to content
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

Mouser price import faulty? #540

Closed
Tropaion opened this issue Mar 4, 2024 · 2 comments
Closed

Mouser price import faulty? #540

Tropaion opened this issue Mar 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Tropaion
Copy link

Tropaion commented Mar 4, 2024

Describe the bug
I just tried the import function from mouser and created an Search-API for it.
Now I tried to update a current part, but the prices of the mouser part are wrong.
It also says that the part was announced even though it clearly is released and in stock

To Reproduce
Try importing this part to partdb: https://www.mouser.at/ProductDetail/Littelfuse/65600201009
It says announced:
image
Prices all zero:
image
If the search already says anounced, shouldn't it not try to add prices?

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Server Side

  • Part-DB Version: 1.11.0
  • PHP Version: 8.1.27
-- -- - Database Server [e.g. MySQL 5.7]

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@Tropaion Tropaion added the bug Something isn't working label Mar 4, 2024
jbtronics added a commit that referenced this issue Mar 4, 2024
jbtronics added a commit that referenced this issue Mar 4, 2024
Austrian mouser returned some other formatted string, which caused problems on the old method. This fixes issue #540
@jbtronics
Copy link
Member

The mouser api returns prices as locale dependent string depending on the selected country. Austrian mouser returned some string different to the expected one. This should be fixed with 1.11.1

Before, all parts which were marked as "New" by mouser were marked as "Announced". Now this only happens, if the part is new and no parts are instocked at mouser yet (otherwise its just active).

@Tropaion
Copy link
Author

Tropaion commented Mar 4, 2024

@jbtronics thanks, that was fast. Tried it just now and it works, but accidently found another bug.
At some LCSC parts, it is importing the HTML-Tags:
image

And I have two questions, is import of part parameters supported? I just tried the same fuse holder and I don't get any parameters.
And is mass import from info provider possible/planned?
For example, you order 100 different parts from mouser and you just import your order xml file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants