PEP fixes

This commit is contained in:
Oliver Walters 2022-04-29 01:35:09 +10:00
parent a0ca20ab04
commit 0bda9c974e
2 changed files with 2 additions and 3 deletions

View File

@ -1292,7 +1292,7 @@ class BuildItem(models.Model):
user,
notes
)
else:
# Simply remove the items from stock
item.take_stock(

View File

@ -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)