From 33b3436d33f136e849c782d3f31e04b71a5c1e8b Mon Sep 17 00:00:00 2001 From: Christopher Foo Date: Mon, 6 Jan 2025 16:58:46 -0500 Subject: [PATCH] Fix wrong function calls --- terroroftinytown/tracker/account.py | 2 +- terroroftinytown/tracker/model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/terroroftinytown/tracker/account.py b/terroroftinytown/tracker/account.py index 11d1bc4..2e0a831 100644 --- a/terroroftinytown/tracker/account.py +++ b/terroroftinytown/tracker/account.py @@ -46,7 +46,7 @@ def _login(self, username, password): if User.check_account(username, password): if User.is_password_outdated(username): logger.info(self.user_audit_text('Upgrade password hash format %s'), username) - User.set_password(username, password) + User.update_password(username, password) self.set_secure_cookie( ACCOUNT_COOKIE_NAME, username, expires_days=30 diff --git a/terroroftinytown/tracker/model.py b/terroroftinytown/tracker/model.py index 3116fd7..2cc8e69 100644 --- a/terroroftinytown/tracker/model.py +++ b/terroroftinytown/tracker/model.py @@ -544,7 +544,7 @@ def delete_one(cls, report_id): @classmethod def delete_orphaned(cls): with new_session() as session: - subquery = select([ErrorReport.id])\ + subquery = select(ErrorReport.id)\ .where(ErrorReport.item_id == Item.id)\ .limit(1)