for elem in morty:
update_rick = q.execute(f"UPDATE users SET chance = chance + {elem} WHERE shadow=0")
for i in range(len(morty)):
update_rick = q.execute(f"UPDATE users SET chance = chance + {morty[i]} WHERE shadow={1+i}")
await cur.execute("UPDATE profile SET admin=Хелпер WHERE uid=%s", user.id)
await conn.commit()
await cur.execute("UPDATE profile SET admin=Хелпер WHERE uid=%s", (user.id,))
def get_year(value):
return value
my_dict = {}
list_values = [1,2,3]
second_work_list = []
for lists in list_values:
my_dict['@year'] = get_year(lists)
second_work_list.append({'@year': my_dict['@year']})
print(second_work_list)
bot.send_message(message.chat.id, result)
bot.send_message(message.chat.id, "hello")
if "test" in message.text.lower():