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)