fix handling new flag

This commit is contained in:
aronwk-aaron 2022-10-23 17:39:20 -05:00
parent b87481e803
commit 3fa8bd4651

View File

@ -264,10 +264,11 @@ def register_settings(app):
'USER_EMAIL_SENDER_EMAIL', 'USER_EMAIL_SENDER_EMAIL',
app.config['USER_EMAIL_SENDER_EMAIL'] app.config['USER_EMAIL_SENDER_EMAIL']
) )
app.config['ENABLE_CHAR_XML_UPLOAD'] = os.getenv( if "ENABLE_CHAR_XML_UPLOAD" in app.config:
'ENABLE_CHAR_XML_UPLOAD', app.config['ENABLE_CHAR_XML_UPLOAD'] = os.getenv(
app.config['ENABLE_CHAR_XML_UPLOAD'] 'ENABLE_CHAR_XML_UPLOAD',
) app.config['ENABLE_CHAR_XML_UPLOAD']
)
def gm_level(gm_level): def gm_level(gm_level):