mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-27 20:19:53 +01:00
2 files changed
+3
-2
No files matched your search
@@ -471,7 +471,7 @@ class PlayerHistogram():
|
|||||||
## main() -------------------------------------------------------------
|
## main() -------------------------------------------------------------
|
||||||
|
|
||||||
async def main(argv):
|
async def main(argv):
|
||||||
global wg, wi
|
global wg, wi, WG_APP_ID
|
||||||
# set the directory for the script
|
# set the directory for the script
|
||||||
os.chdir(os.path.dirname(sys.argv[0]))
|
os.chdir(os.path.dirname(sys.argv[0]))
|
||||||
|
|
||||||
@@ -489,6 +489,7 @@ async def main(argv):
|
|||||||
|
|
||||||
configWG = config['WG']
|
configWG = config['WG']
|
||||||
WG_ID = configWG.getint('wg_id', None)
|
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)
|
WG_RATE_LIMIT = configWG.getint('wg_rate_limit', 10)
|
||||||
|
|
||||||
configDB = config['DATABASE']
|
configDB = config['DATABASE']
|
||||||
|
|||||||
@@ -10,5 +10,5 @@
|
|||||||
## WG API limits requests / sec to 10 for client apps
|
## WG API limits requests / sec to 10 for client apps
|
||||||
## Check https://developers.wargaming.net/documentation/guide/getting-started/
|
## Check https://developers.wargaming.net/documentation/guide/getting-started/
|
||||||
#wg_rate_limit = 10
|
#wg_rate_limit = 10
|
||||||
|
#wg_app_id = XXXXXXXXXXX
|
||||||
|
|
||||||
Reference in new issue
Block a user