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, user,
notes notes
) )
else: else:
# Simply remove the items from stock # Simply remove the items from stock
item.take_stock( item.take_stock(

View File

@ -1165,7 +1165,7 @@ class StockItemTestResultList(generics.ListCreateAPIView):
build = params.get('build', None) build = params.get('build', None)
if build is not None: if build is not None:
try: try:
build = Build.objects.get(pk=build) build = Build.objects.get(pk=build)
@ -1174,7 +1174,6 @@ class StockItemTestResultList(generics.ListCreateAPIView):
except (ValueError, Build.DoesNotExist): except (ValueError, Build.DoesNotExist):
pass pass
# Filter by stock item # Filter by stock item
item = params.get('stock_item', None) item = params.get('stock_item', None)