async def record_participate(id, number):
connection.connect
cursor.execute(f"UPDATE `user` SET `participate`={number} WHERE `id` = {id}")
connection.commit()
print('Добавил бро')
import mysql.connector
conn = mysql.connector.connect(host='127.0.0.1', database='test', user='user', password='')
cursor = conn.cursor()
sql = "UPDATE `user` SET `participate`=%s WHERE `id` = %s"
cursor.execute(sql, [number, id])
conn.commit()