fix bug in database.py

This commit is contained in:
2021-05-16 21:17:29 +08:00
parent 22e5cf30c3
commit bd806bfaf7

View File

@@ -330,7 +330,7 @@ PRIMARY KEY (userId)
return False
self._db.execute(
f"UPDATE RSSList SET forceupdate=? WHERE id=?;",
('true' if forceupdate else 'false', hashd))
(forceupdate, hashd))
self._db.commit()
return True
except: