Descriription
The sidebar event list and the home page event list are out of sync:

I suspect the sidebar is using the current time from when the server starts, instead of when the page is loaded. The bug is likely from this line in question, which evaluates timezone.localtime() in a class level variable:
|
"queryset": Event.objects.filter(date_time__gte=timezone.localtime()).order_by("date_time"), |
Expected behavior
Old events should not show in the sidebar
Steps to reproduce the behavior
https://spokanetech.org/events
Relevant log output
No response
Code of Conduct
Descriription
The sidebar event list and the home page event list are out of sync:
I suspect the sidebar is using the current time from when the server starts, instead of when the page is loaded. The bug is likely from this line in question, which evaluates
timezone.localtime()in a class level variable:SpokaneTech_Py/src/web/views.py
Line 217 in e2cfdb7
Expected behavior
Old events should not show in the sidebar
Steps to reproduce the behavior
https://spokanetech.org/events
Relevant log output
No response
Code of Conduct