Skip to content

Commit 7146081

Browse files
committed
dont update user set statutuses
1 parent 72e884a commit 7146081

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/tasks/scheduled/sync_retroachievements_progress.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ def _sync_rom_user_statuses(user: User, user_progression: RAUserProgression) ->
7575
if rom_user.status == new_status:
7676
continue
7777

78+
if rom_user.status in {RomUserStatus.RETIRED, RomUserStatus.NEVER_PLAYING}:
79+
continue
80+
7881
db_rom_handler.update_rom_user(rom_user.id, {"status": new_status})
7982
log.debug(
8083
f"Set rom_user status to '{new_status}' for user '{user.username}' "

0 commit comments

Comments
 (0)