Skip to content

Commit

Permalink
Fix wrong function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
chfoo committed Jan 6, 2025
1 parent 6846558 commit 33b3436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terroroftinytown/tracker/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion terroroftinytown/tracker/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 33b3436

Please sign in to comment.