I have some data in an sqlite3 database, I made an input to be a command to update that data. for some reason when I run that command it does not work and gives me an sqlite3.OperationalError: no such column: "some lettres"
my function to update the data: (the generate_pwd() function works just fine and it has been tested)
def update_query(self, wbname):
"""this function enables the user to update a query
Args:
wbname (str): the website name to change the pass
"""
with conn:
newpwd = go.generate_pwd()
c.execute(f"UPDATE password_list SET password={newpwd} WHERE website_name={wbname}")
pass
my elif statement to make the command:
elif command == "u":
wbname = input("Enter the site name: ")
co.update_query(wbname)
I hope it is clear enough, If you need any further data on my problem just type in the comments.