N
N
NoName22813372020-06-16 13:19:25
Python
NoName2281337, 2020-06-16 13:19:25

Strange sqlite3 error, what to do?

Here's the error:
sql.execute(f"UPDATE _bot_ SET InfoTime = {0} WHERE teleid = {heid} ")
sqlite3.OperationalError: unrecognized token: "{"

What's wrong with "{" ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Bugaets, 2020-06-16
@ilyabugaets

Try this sql.execute(f"UPDATE _bot_ SET InfoTime = '{0}' WHERE teleid = '{heid}' ")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question