Skip to content

Commit

Permalink
fix: convert expired_users to list so it can be iterated again (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
Danialslm authored Jan 27, 2024
1 parent e3e96be commit 6a1716a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ def delete_expired_users(bg: BackgroundTasks,
else:
expired_users = dbusers

expired_users = list(expired_users)
removed_users = [u.username for u in expired_users]
crud.remove_users(db, expired_users)

Expand Down

0 comments on commit 6a1716a

Please sign in to comment.