server: fix importing part
This commit is contained in:
parent
5fc71e50db
commit
efeaebce59
|
@ -431,7 +431,7 @@ get '/import/lcsc/:lcsc' do
|
|||
part["details"] = result["productIntroEn"]
|
||||
part["manufacturer"] = result["brandNameEn"]
|
||||
part["package"] = result["encapStandard"]
|
||||
part["distributors"] = {"LCSC" => result["productCode"]}
|
||||
part["distributors"] = [{"name" => "LCSC", "sku" => result["productCode"]}]
|
||||
part["attachments"] = result["productImages"]
|
||||
part["datasheet"] = result["pdfUrl"]
|
||||
existing = get_part_by_name(part["name"])
|
||||
|
|
Loading…
Reference in New Issue