def otpr_zadachi(user_name):
...
win.title('Диалог с ' + user_name)
# а в command передавать сам параметр
btn = Button(scframe.interior, height=2, width=35, relief=FLAT,
bg='#336B87', fg='black', bd = 4,
font="Dosis", text=massive[0],command = lambda: otpr_zadachi(massive[0]) )
from functools import partial
btn = Button(scframe.interior, height=2, width=35, relief=FLAT,
bg='#336B87', fg='black', bd = 4,
font="Dosis", text=massive[0],command = partial(otpr_zadachi, massive[0]) )
print(cursor.execute(f"""SELECT * FROM {table} WHERE id = 1""").fetchall())
curr.execute("""INSERT INTO users_id (user_id, ) VALUES (%s);""", (user_id_v, ))
curr.execute("""INSERT INTO users_id (user_id, ) VALUES (%(str)s);""", {"str": user_id_v})
f.seek(position)
sql.execute("select nick from players where nick = '{nick}'")
If you don`t want to parse some cells as date just change their type in Excel to “Text”.
А зачем делать эту проверку? Я же написал как сделать без проверок.