psycopg2 not all arguments converted during string formatting

https://stackoverflow.com/questions/21524482/psycopg2-typeerror-not-all-arguments-converted-during-string-formatting
This commit is contained in:
forest 2022-02-09 12:17:57 -06:00
parent 520e153180
commit 5167b3a5f3
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class DBModel:
return vm
def clear_shortterm_flag(self, email):
self.cursor.execute("UPDATE vms SET shortterm = FALSE WHERE email = %s", (email))
self.cursor.execute("UPDATE vms SET shortterm = FALSE WHERE email = %s", (email,))
self.connection.commit()