2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 20:46:47 +00:00

ignore branches

This commit is contained in:
Matthias 2022-02-13 04:43:18 +01:00
parent 5d277a888d
commit 3ed836f19d
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 5 additions and 5 deletions

View File

@ -26,12 +26,12 @@ def extract_purchase_price(apps, schema_editor):
# Find all the StockItem objects without a purchase_price which point to a PurchaseOrder # Find all the StockItem objects without a purchase_price which point to a PurchaseOrder
items = StockItem.objects.filter(purchase_price=None).exclude(purchase_order=None) items = StockItem.objects.filter(purchase_price=None).exclude(purchase_order=None)
if items.count() > 0: if items.count() > 0: # pragma: no cover
print(f"Found {items.count()} stock items with missing purchase price information") print(f"Found {items.count()} stock items with missing purchase price information")
update_count = 0 update_count = 0
for item in items: for item in items: # pragma: no cover
part_id = item.part part_id = item.part
@ -57,10 +57,10 @@ def extract_purchase_price(apps, schema_editor):
break break
if update_count > 0: if update_count > 0: # pragma: no cover
print(f"Updated pricing for {update_count} stock items") print(f"Updated pricing for {update_count} stock items")
def reverse_operation(apps, schema_editor): def reverse_operation(apps, schema_editor): # pragma: no cover
""" """
DO NOTHING! DO NOTHING!
""" """

View File

@ -29,7 +29,7 @@ def delete_scheduled(apps, schema_editor):
Task.objects.filter(func='stock.tasks.delete_old_stock_items').delete() Task.objects.filter(func='stock.tasks.delete_old_stock_items').delete()
def reverse(apps, schema_editor): def reverse(apps, schema_editor): # pragma: no cover
pass pass