[boardgames] Fix lichess error
All checks were successful
build & deploy / test (push) Successful in 2m17s
build & deploy / build-and-deploy (push) Successful in 33s

This commit is contained in:
2026-05-22 12:22:14 -04:00
parent 9b7fa0d4f8
commit 26176ccd73

View File

@ -113,6 +113,8 @@ def import_chess_games_for_all_users():
scrobbles_to_create = []
for user in User.objects.filter(profile__lichess_username__isnull=False):
scrobble_dict = import_chess_games_for_user_id(user.id)
if not scrobble_dict:
continue
scrobbles_to_create.append(Scrobble(**scrobble_dict))
if scrobbles_to_create: