forked from s3lph/matemat
Fixed: Wrong argument name check when adding a new product.
This commit is contained in:
parent
1ab69f1307
commit
f860ae3b58
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ def handle_admin_change(args: RequestArguments, db: MatematDatabase):
|
|||
db.create_user(username, password, email, member=is_member, admin=is_admin)
|
||||
|
||||
elif change == 'newproduct':
|
||||
if 'name' not in args or 'price_member' not in args or 'price_non_member' not in args:
|
||||
if 'name' not in args or 'pricemember' not in args or 'pricenonmember' not in args:
|
||||
return
|
||||
name = str(args.name)
|
||||
price_member = int(str(args.pricemember))
|
||||
|
|
Loading…
Reference in a new issue