From f806c6449b62e82a064833e034a90010c6aef0ca Mon Sep 17 00:00:00 2001 From: S1S13AF7 Date: Wed, 7 Aug 2024 10:13:09 +0300 Subject: [PATCH] Add files via upload --- misc_beta_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc_beta_bot.py b/misc_beta_bot.py index 10cd166..99469d9 100644 --- a/misc_beta_bot.py +++ b/misc_beta_bot.py @@ -302,7 +302,7 @@ async def cmd_ends (message: types.Message): if db_pymysql: try: #зберігалка: https://github.com/S1S13AF7/ub4tg (адреса може змінитись) - dbc.execute(f"SELECT user_id,bio_str,expr_str FROM `tg_iris_zarazy` WHERE who_id = {user_id} AND expr_int < {when_int} ORDER BY `bio_int` DESC LIMIT 10;")# % int(user_id),int(when_int)); + dbc.execute(f"SELECT user_id,bio_str,expr_str FROM `tg_iris_zarazy` WHERE who_id = {user_id} AND expr_int < {when_int} ORDER BY `bio_int` DESC, `when_int` DESC LIMIT 10;") bz_info = dbc.fetchmany(10)#получить all_sicknes=[]#інфа count=len(bz_info)