From ce3f9993c58b117b0ba1e74996be2bb963ea061a Mon Sep 17 00:00:00 2001 From: Jylpah Date: Tue, 3 Aug 2021 12:43:43 +0300 Subject: [PATCH] help_extended(): change order of filter helps --- analyze_wotb_replays.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/analyze_wotb_replays.py b/analyze_wotb_replays.py index 0e4391e..9916d70 100755 --- a/analyze_wotb_replays.py +++ b/analyze_wotb_replays.py @@ -1638,6 +1638,22 @@ async def help_extended(db : motor.motor_asyncio.AsyncIOMotorDatabase = None, pa 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 print('\n-------------------------------------------------------------------') print('| DB Filter usage |') @@ -1660,22 +1676,6 @@ async def help_extended(db : motor.motor_asyncio.AsyncIOMotorDatabase = None, pa except Exception as 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): """Export replays"""