1
0
Fork 0
forked from s3lph/matemat

Fixed: Wrong argument name check when adding a new product.

This commit is contained in:
s3lph 2018-07-11 18:24:23 +02:00
parent 1ab69f1307
commit f860ae3b58

View file

@ -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))