mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 02:07:06 +02:00
Merge pull request #32 from Jylpah/master-platoon
help_extended(): change order of filter helps
This commit is contained in:
1 file changed
+16
-16
+16
-16
@@ -1638,6 +1638,22 @@ async def help_extended(db : motor.motor_asyncio.AsyncIOMotorDatabase = None, pa
|
|||||||
|
|
||||||
BattleCategory.help()
|
BattleCategory.help()
|
||||||
|
|
||||||
|
print('\n-------------------------------------------------------------------')
|
||||||
|
print('| Filters |')
|
||||||
|
print('-------------------------------------------------------------------\n')
|
||||||
|
print("\t--filters '{ \"categorization\" : category }'")
|
||||||
|
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('')
|
||||||
|
BattleCategorizationList.help()
|
||||||
|
print('\n-------------------------------------------------------------------')
|
||||||
|
print('| Rounding errors |')
|
||||||
|
print('-------------------------------------------------------------------\n')
|
||||||
|
print('Yes, the numbers are rounded UP because reasons.')
|
||||||
|
print('If interested why please read this: ')
|
||||||
|
print('\thttps://realpython.com/python-rounding/#pythons-built-in-round-function')
|
||||||
|
print('No, I am not planning to fix these for now.')
|
||||||
|
|
||||||
# Filter usage
|
# Filter usage
|
||||||
print('\n-------------------------------------------------------------------')
|
print('\n-------------------------------------------------------------------')
|
||||||
print('| DB Filter usage |')
|
print('| DB Filter usage |')
|
||||||
@@ -1660,22 +1676,6 @@ async def help_extended(db : motor.motor_asyncio.AsyncIOMotorDatabase = None, pa
|
|||||||
except Exception as err:
|
except Exception as err:
|
||||||
bu.error(exception=err)
|
bu.error(exception=err)
|
||||||
|
|
||||||
print('\n-------------------------------------------------------------------')
|
|
||||||
print('| Filters |')
|
|
||||||
print('-------------------------------------------------------------------\n')
|
|
||||||
print("\t--filters '{ \"categorization\" : category }'")
|
|
||||||
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('')
|
|
||||||
BattleCategorizationList.help()
|
|
||||||
print('\n-------------------------------------------------------------------')
|
|
||||||
print('| Rounding errors |')
|
|
||||||
print('-------------------------------------------------------------------\n')
|
|
||||||
print('Yes, the numbers are rounded UP because reasons.')
|
|
||||||
print('If interested why please read this: ')
|
|
||||||
print('\thttps://realpython.com/python-rounding/#pythons-built-in-round-function')
|
|
||||||
print('No, I am not planning to fix these for now.')
|
|
||||||
|
|
||||||
|
|
||||||
async def export_replays(replays: dict):
|
async def export_replays(replays: dict):
|
||||||
"""Export replays"""
|
"""Export replays"""
|
||||||
|
|||||||
Reference in new issue
Block a user