mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP fixes
This commit is contained in:
parent
a0ca20ab04
commit
0bda9c974e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user