Uprising mode, --mode help texts

This commit is contained in:
Jylpah committed 2020-12-05 18:17:44 +02:00
1 parent e654b9ab36
commit 2a8b123a83
1 file changed
+6 -3
+6 -3
View File
@@ -116,6 +116,7 @@ class BattleCategorizationList():
'Rating' : 7, 'Rating' : 7,
'Mad Games' : 8, 'Mad Games' : 8,
'Realistic Battles' : 22, 'Realistic Battles' : 22,
'Uprising' : 23,
'Gravity Mode' : 24, 'Gravity Mode' : 24,
'Skirmish' : 25, 'Skirmish' : 25,
'Burning Games' : 26 'Burning Games' : 26
@@ -1324,8 +1325,8 @@ async def help_extended(db : motor.motor_asyncio.AsyncIOMotorDatabase = None, pa
print('') print('')
print('You are unlikely to have DB setup required for these filters. This is "Jylpah\'s special"') print('You are unlikely to have DB setup required for these filters. This is "Jylpah\'s special"')
print('') print('')
print("Syntax: --filters '{ \"replay.param\": VALUE, \"replay.param2\": { \"$MONGO_OPERATOR\" : VALUE }, ... }'") print("Syntax: --filters_db '{ \"replay.param\": VALUE, \"replay.param2\": { \"$MONGO_OPERATOR\" : VALUE }, ... }'")
print("\tExample: --filters '{ \"data.summary.protagonist\": ACCOUNT_ID, \"data.summary.battle_start_timestamp\": { \"$gt\" : 1602853200 } }'") print("\tExample: --filters_db '{ \"data.summary.protagonist\": ACCOUNT_ID, \"data.summary.battle_start_timestamp\": { \"$gt\" : 1602853200 } }'")
if db != None: if db != None:
dbc = db[DB_C_REPLAYS] dbc = db[DB_C_REPLAYS]
try: try:
@@ -1341,10 +1342,12 @@ async def help_extended(db : motor.motor_asyncio.AsyncIOMotorDatabase = None, pa
bu.error(exception=err) bu.error(exception=err)
print('\n-------------------------------------------------------------------') print('\n-------------------------------------------------------------------')
print('| Filters example: --filter \'{ "room_type" :1 }\' |') print('| Filters |')
print('-------------------------------------------------------------------') print('-------------------------------------------------------------------')
print('') print('')
print("\t--filters '{ \"categorization\" : category }'")
print('\tThese filters let you filter only battles matching the filter. The filter has been proper JSON dict.') print('\tThese filters let you filter only battles matching the filter. The filter has been proper JSON dict.')
print("\tExample: --filter '{ \"room_type\" :1 }'")
print('') print('')
BattleCategorizationList.help() BattleCategorizationList.help()