[people] Count people scrobbles by board games too
All checks were successful
build & deploy / test (push) Successful in 1m54s
build & deploy / deploy (push) Successful in 24s

This commit is contained in:
2026-03-21 12:00:41 -04:00
parent 29a677142c
commit 62c81c65ef

View File

@ -36,5 +36,11 @@ class Person(TimeStampedModel):
person_ids = scrobble.log.get("with_people_ids") or []
if person_ids and self.id in person_ids:
count += 1
continue
players = scrobble.log.get("players") or []
for player in players:
if player.get("person_id") == self.id:
count += 1
break
self.scrobble_count = count
self.save(update_fields=["scrobble_count"])