2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00
This commit is contained in:
Oliver Walters 2021-02-04 23:11:19 +11:00
parent 3c5169c793
commit 978ea7cc0b

View File

@ -182,7 +182,7 @@ def associate_manufacturers(apps, schema_editor):
print(" - Part[{pk}]: Created new manufacturer: '{name}'".format(pk=part_id, name=company_name)) print(" - Part[{pk}]: Created new manufacturer: '{name}'".format(pk=part_id, name=company_name))
# Update SupplierPart object in the database # Update SupplierPart object in the database
cursor.execute(f"update part_supplierpart set manufacturer_id={manufacturer_id} where id={part_id};") cursor.execute(f"update part_supplierpart set manufacturer_id={manufacturer.pk} where id={part_id};")
def find_matches(text, threshold=65): def find_matches(text, threshold=65):
""" """