mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 02:11:16 +00:00
PEP fixes
This commit is contained in:
1 parent
a0ca20ab04
commit
0bda9c974e
2 files changed
+2
-3
No files matched your search
@@ -1292,7 +1292,7 @@ class BuildItem(models.Model):
|
||||
user,
|
||||
notes
|
||||
)
|
||||
|
||||
|
||||
else:
|
||||
# Simply remove the items from stock
|
||||
item.take_stock(
|
||||
|
||||
@@ -1165,7 +1165,7 @@ class StockItemTestResultList(generics.ListCreateAPIView):
|
||||
build = params.get('build', None)
|
||||
|
||||
if build is not None:
|
||||
|
||||
|
||||
try:
|
||||
build = Build.objects.get(pk=build)
|
||||
|
||||
@@ -1174,7 +1174,6 @@ class StockItemTestResultList(generics.ListCreateAPIView):
|
||||
except (ValueError, Build.DoesNotExist):
|
||||
pass
|
||||
|
||||
|
||||
# Filter by stock item
|
||||
item = params.get('stock_item', None)
|
||||
|
||||
|
||||
Reference in new issue
Block a user