T
Size: a a a
T
S
S
def update_await_post_publish(tg_id, value, new_value):
t = (value, new_value, tg_id)
connect_str = create_connection(db_host, db_username, db_password, db_name)
cursor = connect_str.cursor()
if (cursor.execute("UPDATE posts SET ? = ? WHERE uid = ?;", t)):
return True
cursor.close()
connect_str.commit()
connect_str.close()
T
T
S
S
S
T
T
S
T
T
S
S
ЕП
T
S
cursor.execute("UPDATE posts SET content = ? WHERE uid = ?;", t)
T
def update_await_post_publish(tg_id, value, new_value):
t = (value, new_value, tg_id)
connect_str = create_connection(db_host, db_username, db_password, db_name)
cursor = connect_str.cursor()
if (cursor.execute("UPDATE posts SET ? = ? WHERE uid = ?;", t)):
return True
cursor.close()
connect_str.commit()
connect_str.close()
k