mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-14 20:20:38 +01:00
configuration humble bundle
This commit is contained in:
@@ -19,6 +19,7 @@ def openConfigurations():
|
|||||||
def updateConfiguration():
|
def updateConfiguration():
|
||||||
for key in request.form :
|
for key in request.form :
|
||||||
ConfigurationHelper().createOrUpdate(key, request.form.get(key))
|
ConfigurationHelper().createOrUpdate(key, request.form.get(key))
|
||||||
|
# Je fait ca car html n'envoi pas le parametre de checkbox quand il est décoché
|
||||||
if (request.form.get("humble_bundle_channel") != None and request.form.get("humble_bundle_enable") == None) :
|
if (request.form.get("humble_bundle_channel") != None and request.form.get("humble_bundle_enable") == None) :
|
||||||
ConfigurationHelper().createOrUpdate('humble_bundle_enable', False)
|
ConfigurationHelper().createOrUpdate('humble_bundle_enable', False)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user