forked from s3lph/matemat
codestyle
This commit is contained in:
parent
93af2dbbd4
commit
a5b52e24b5
2 changed files with 1 additions and 2 deletions
|
@ -333,4 +333,3 @@ SCHEMAS[5] = [
|
||||||
ON DELETE SET NULL ON UPDATE CASCADE
|
ON DELETE SET NULL ON UPDATE CASCADE
|
||||||
);
|
);
|
||||||
''']
|
''']
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue