replacement of configuration variable acquisition

This commit is contained in:
2026-01-10 01:06:54 +01:00
parent 2b04397f7d
commit 3da7b70cd1
2 changed files with 25 additions and 23 deletions

View File

@@ -15,18 +15,18 @@ bcrypt = Bcrypt(app)
#### Variables ####################################################################################
bcrypt = Bcrypt(app)
DATAS_USER = app.config['DOSSIER_APP']
DATAS_USER = app.config.get('DOSSIER_APP')
extensionimg = app.config['EXT_IMG']
extensionimg = app.config.get('EXT_IMG')
DATABASE = app.config['DATABASE']
BASE_URL = app.config['BASE_URL']
SETUID = app.config['SETUID']
MAIL_SERVER = app.config['MAIL_SERVER']
XMPP_SERVER = app.config['XMPP_SERVER']
BACKUP_TIME = app.config['BACKUP_TIME']
SERVER_TITLE = app.config['TITLE_SERVER']
SERVER_DESC = app.config['DESC_SERVER']
DATABASE = app.config.get('DATABASE')
BASE_URL = app.config.get('BASE_URL')
SETUID = app.config.get('SETUID')
MAIL_SERVER = app.config.get('MAIL_SERVER')
XMPP_SERVER = app.config.get('XMPP_SERVER')
BACKUP_TIME = app.config.get('BACKUP_TIME')
SERVER_TITLE = app.config.get('TITLE_SERVER')
SERVER_DESC = app.config.get('DESC_SERVER')
##################################################################################################