From 8a1bf00f448cd378e399aba621d3a47a17ff63e0 Mon Sep 17 00:00:00 2001 From: Jylpah Date: Sun, 25 Oct 2020 00:30:37 +0300 Subject: [PATCH] Update new config file structure --- upload_wotb_replays.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upload_wotb_replays.py b/upload_wotb_replays.py index 3128c24..ce0d09e 100755 --- a/upload_wotb_replays.py +++ b/upload_wotb_replays.py @@ -43,9 +43,9 @@ async def main(argv): config = configparser.ConfigParser() config.read(FILE_CONFIG) try: - if 'OPTIONS' in config.sections(): - configOptions = config['OPTIONS'] - OPT_WORKERS_N = configOptions.getint('opt_uploader_workers', OPT_WORKERS_N) + if 'UPLOADER' in config.sections(): + configUploader = config['UPLOADER'] + OPT_WORKERS_N = configUploader.getint('opt_workers', OPT_WORKERS_N) except (KeyError, configparser.NoSectionError) as err: bu.error(exception=err)