From 2198f42fc09a80e32ae79d33212dd3ab63108807 Mon Sep 17 00:00:00 2001 From: Joan Date: Mon, 13 Nov 2023 13:39:18 +0100 Subject: [PATCH] Removed list of users from updating the pinned message --- conjuntasbot/conjuntasbot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/conjuntasbot/conjuntasbot.py b/conjuntasbot/conjuntasbot.py index 27ed7a7..7fe5a8f 100644 --- a/conjuntasbot/conjuntasbot.py +++ b/conjuntasbot/conjuntasbot.py @@ -402,12 +402,12 @@ async def update_conjunta(update: Update, context: CallbackContext, conjunta_id) cursor.execute("SELECT * FROM conjunta_users WHERE conjunta_id=?", (conjunta_id,)) users = cursor.fetchall() - if users: - message += f"\n🧍 Lista de apuntados:\n\n" - for user in users: - id, conjunta_id, user_id, user_name, quantity = user - quantity_string = "unidades" if quantity > 1 else "unidad" - message += f"@{user_name} - {quantity} {quantity_string}\n" + #if users: + # message += f"\n🧍 Lista de apuntados:\n\n" + # for user in users: + # id, conjunta_id, user_id, user_name, quantity = user + # quantity_string = "unidades" if quantity > 1 else "unidad" + # message += f"@{user_name} - {quantity} {quantity_string}\n" if (int(time.time()) - int(message_date)) < (24 * 3600 * 2): # borramos el mensaje si tiene más de 1 día logging.info(f"Updating message for {product_name} - {conjunta_id}")