2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-04 19:11:35 +00:00

PEP style fixes

This commit is contained in:
Oliver
2022-02-03 14:16:33 +11:00
parent b387b4e173
commit 566fd87e86

View File

@@ -100,7 +100,7 @@ class BuildOutputCreate(AjaxUpdateView):
# Check that requested output don't exceed build remaining quantity # Check that requested output don't exceed build remaining quantity
maximum_output = int(build.remaining - build.incomplete_count) maximum_output = int(build.remaining - build.incomplete_count)
if quantity > maximum_output: if quantity > maximum_output:
form.add_error( form.add_error(
'output_quantity', 'output_quantity',
@@ -112,7 +112,7 @@ class BuildOutputCreate(AjaxUpdateView):
'output_quantity', 'output_quantity',
_('Output quantity must be greater than zero'), _('Output quantity must be greater than zero'),
) )
# Check that the serial numbers are valid # Check that the serial numbers are valid
if serials: if serials:
try: try: