From ff81e7d1f9f5b2aa34aa15f3e1d6e06ca521c177 Mon Sep 17 00:00:00 2001 From: Jylpah Date: Tue, 25 Feb 2020 00:12:51 +0200 Subject: [PATCH] WG app id added to config file Get your own WG app ID at https://developers.wargaming.net/documentation/guide/getting-started/ --- analyze_wotb_replays.py | 3 ++- blitzstats.ini.default | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/analyze_wotb_replays.py b/analyze_wotb_replays.py index 1b0d722..379a354 100644 --- a/analyze_wotb_replays.py +++ b/analyze_wotb_replays.py @@ -471,7 +471,7 @@ class PlayerHistogram(): ## main() ------------------------------------------------------------- async def main(argv): - global wg, wi + global wg, wi, WG_APP_ID # set the directory for the script os.chdir(os.path.dirname(sys.argv[0])) @@ -489,6 +489,7 @@ async def main(argv): configWG = config['WG'] WG_ID = configWG.getint('wg_id', None) + WG_APP_ID = configWG.get('wg_app_id', WG_APP_ID) WG_RATE_LIMIT = configWG.getint('wg_rate_limit', 10) configDB = config['DATABASE'] diff --git a/blitzstats.ini.default b/blitzstats.ini.default index 0aaf3dd..d4fd4e1 100644 --- a/blitzstats.ini.default +++ b/blitzstats.ini.default @@ -10,5 +10,5 @@ ## WG API limits requests / sec to 10 for client apps ## Check https://developers.wargaming.net/documentation/guide/getting-started/ #wg_rate_limit = 10 - +#wg_app_id = XXXXXXXXXXX