1
0
Fork 0
forked from s3lph/matemat

codestyle

This commit is contained in:
s3lph 2020-12-28 09:50:12 +01:00
parent 93af2dbbd4
commit a5b52e24b5
2 changed files with 1 additions and 2 deletions

View file

@ -333,4 +333,3 @@ SCHEMAS[5] = [
ON DELETE SET NULL ON UPDATE CASCADE ON DELETE SET NULL ON UPDATE CASCADE
); );
'''] ''']

View file

@ -191,7 +191,7 @@ def handle_admin_change(args: FormsDict, files: FormsDict, db: MatematDatabase):
# The user requested to create a new product # The user requested to create a new product
elif change == 'newproduct': elif change == 'newproduct':
# Only create a new product if all required properties of the product are present in the request arguments # Only create a new product if all required properties of the product are present in the request arguments
for key in ['name','pricemember', 'pricenonmember']: for key in ['name', 'pricemember', 'pricenonmember']:
if key not in args: if key not in args:
return return
# Read the properties from the request arguments # Read the properties from the request arguments