diff --git a/nonebot_plugin_tetris_stats/utils/database.py b/nonebot_plugin_tetris_stats/utils/database.py index 43ab254..3f84692 100644 --- a/nonebot_plugin_tetris_stats/utils/database.py +++ b/nonebot_plugin_tetris_stats/utils/database.py @@ -82,11 +82,12 @@ class DataBase(): if result is None: trending = '?' - else: - if result[0] > trline: - trending = '↑' - else: - trending = '↓' + elif trline > result[0]: + trending = '↑' + elif trline == result[0]: + trending = '-' + elif trline < result[0]: + trending = '↓' cursor.execute('''INSERT INTO IORANK (RANK, TRENDING, TRLINE, PLAYERCOUNT, AVGAPM, AVGPPS, ARGVS, DATE)