Skip to content

[Bug]: Old events showing in sidebar #143

@joeriddles

Description

@joeriddles

Descriription

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

image

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

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions