Skip to content

Commit

Permalink
Fix fomatting again
Browse files Browse the repository at this point in the history
  • Loading branch information
30350n committed Sep 13, 2023
1 parent cd35744 commit 1d349f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion InvenTree/plugin/base/barcodes/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def receive_purchase_order_item(
}
}

if quantity and type(quantity) != int:
if quantity and not isinstance(quantity, int):
try:
quantity = int(quantity)
response["lineitem"]["quantity"] = quantity
Expand Down
3 changes: 1 addition & 2 deletions InvenTree/plugin/builtin/suppliers/test_supplier_barcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

from django.urls import reverse

from InvenTree.unit_test import InvenTreeAPITestCase

from company.models import Company, ManufacturerPart, SupplierPart
from InvenTree.unit_test import InvenTreeAPITestCase
from order.models import PurchaseOrder, PurchaseOrderLineItem
from part.models import Part
from stock.models import StockItem, StockLocation
Expand Down

0 comments on commit 1d349f0

Please sign in to comment.