From a5b52e24b5b0c48ce5a34a2035d8b035b6ac7b97 Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 28 Dec 2020 09:50:12 +0100 Subject: [PATCH] codestyle --- matemat/db/schemas.py | 1 - matemat/webserver/pagelets/admin.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/matemat/db/schemas.py b/matemat/db/schemas.py index 5fe0049..cccb638 100644 --- a/matemat/db/schemas.py +++ b/matemat/db/schemas.py @@ -333,4 +333,3 @@ SCHEMAS[5] = [ ON DELETE SET NULL ON UPDATE CASCADE ); '''] - diff --git a/matemat/webserver/pagelets/admin.py b/matemat/webserver/pagelets/admin.py index 43adf86..9b598f5 100644 --- a/matemat/webserver/pagelets/admin.py +++ b/matemat/webserver/pagelets/admin.py @@ -191,7 +191,7 @@ def handle_admin_change(args: FormsDict, files: FormsDict, db: MatematDatabase): # The user requested to create a new product elif change == 'newproduct': # 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: return # Read the properties from the request arguments