From 3ed836f19d821a45bfa0cb6f978adbe8e5e62707 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Feb 2022 04:43:18 +0100 Subject: [PATCH] ignore branches --- InvenTree/stock/migrations/0064_auto_20210621_1724.py | 8 ++++---- InvenTree/stock/migrations/0071_auto_20211205_1733.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/InvenTree/stock/migrations/0064_auto_20210621_1724.py b/InvenTree/stock/migrations/0064_auto_20210621_1724.py index 666de26189..f54fa6da83 100644 --- a/InvenTree/stock/migrations/0064_auto_20210621_1724.py +++ b/InvenTree/stock/migrations/0064_auto_20210621_1724.py @@ -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 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") update_count = 0 - for item in items: + for item in items: # pragma: no cover part_id = item.part @@ -57,10 +57,10 @@ def extract_purchase_price(apps, schema_editor): break - if update_count > 0: + if update_count > 0: # pragma: no cover 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! """ diff --git a/InvenTree/stock/migrations/0071_auto_20211205_1733.py b/InvenTree/stock/migrations/0071_auto_20211205_1733.py index e069f77a20..a6379d899d 100644 --- a/InvenTree/stock/migrations/0071_auto_20211205_1733.py +++ b/InvenTree/stock/migrations/0071_auto_20211205_1733.py @@ -29,7 +29,7 @@ def delete_scheduled(apps, schema_editor): 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