[lifeevents] Add life events to index and templates
All checks were successful
build & deploy / test (push) Successful in 1m55s
build & deploy / deploy (push) Successful in 27s

This commit is contained in:
2026-03-21 10:55:06 -04:00
parent 49b8b86249
commit 851c747a60
5 changed files with 109 additions and 5 deletions

View File

@ -234,6 +234,11 @@ class RecentScrobbleList(ListView):
data["daily_calories"] = get_daily_calories_for_user_by_day(
self.request.user.id, date
)
data["life_events_in_progress"] = Scrobble.objects.filter(
user=self.request.user,
life_event__isnull=False,
in_progress=True,
).order_by("-timestamp")
else:
data["weekly_data"] = week_of_scrobbles()
data["counts"] = scrobble_counts()