Always try to load servers list from config file

Otherwise, servers list is not loaded if the configuration file also
have an ogServer declared in the deprecated way.
async-tree
Javier Sánchez Parra 2022-09-22 17:25:11 +02:00
parent 30d27c8951
commit 178f253092
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ if {'IP', 'PORT', 'API_TOKEN'} <= app.config.keys():
app.config['IP'],
app.config['PORT'],
app.config['API_TOKEN']))
else:
if app.config.get('SERVERS'):
for server in app.config['SERVERS']:
ogserver = OGServer(server['NAME'],
server['IP'],