mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-28 12:39:52 +01:00
ADd defaults for tankopedia and map JSON files
This commit is contained in:
1 parent
5a9f7587b9
commit
707239d75e
3 files changed
+23
-25
No files matched your search
@@ -31,14 +31,13 @@ async def main(argv):
|
||||
parser.add_argument('-t','--title', type=str, default=None, help='Title for replays. Use NN for continous numbering. Default is filename-based numbering')
|
||||
parser.add_argument('-p', '--private', dest="private", action='store_true', default=False, help='Set replays private on WoTinspector.com')
|
||||
parser.add_argument('--tasks', dest='N_tasks', type=int, default=10, help='Number of worker threads')
|
||||
parser.add_argument('--tankopedia', type=str, default=None, help='JSON file to read Tankopedia from')
|
||||
parser.add_argument('--mapfile', type=str, default=None, help='JSON file to read Blitz map names from')
|
||||
parser.add_argument('--tankopedia', type=str, default='tanks.json', help='JSON file to read Tankopedia from. Default: "tanks.json"')
|
||||
parser.add_argument('--mapfile', type=str, default='maps.json', help='JSON file to read Blitz map names from. Default: "maps.json"')
|
||||
parser.add_argument('-d', '--debug', action='store_true', default=False, help='Debug mode')
|
||||
parser.add_argument('-v', '--verbose', action='store_true', default=False, help='Verbose mode')
|
||||
parser.add_argument('files', metavar='FILE1 [FILE2 ...]', type=str, nargs='+', help='Files to read. Use \'-\' for STDIN"')
|
||||
args = parser.parse_args()
|
||||
|
||||
print(args.files)
|
||||
bu.setVerbose(args.verbose)
|
||||
bu.setDebug(args.debug)
|
||||
|
||||
@@ -110,7 +109,6 @@ async def mkReplayQ(queue : asyncio.Queue, files : list, title : str):
|
||||
bu.debug('Finished')
|
||||
return None
|
||||
|
||||
|
||||
async def mkQueueItem(filename : str, title : str) -> list:
|
||||
"""Make an item to replay queue"""
|
||||
global REPLAY_N
|
||||
@@ -125,7 +123,6 @@ async def replayWorker(queue: asyncio.Queue, workerID: int, account_id: int, pri
|
||||
while True:
|
||||
item = await queue.get()
|
||||
filename = item[0]
|
||||
# debug(filename)
|
||||
N = item[1]
|
||||
title = item[2]
|
||||
replay_json_fn = filename + '.json'
|
||||
|
||||
Reference in new issue
Block a user