display events on startpage until they end

Co-authored-by: unkonkret <unkonkret@systemli.org>
This commit is contained in:
778a69cd 2023-03-15 19:25:22 +01:00
parent 80f4eed646
commit dea5e5d24c

View file

@ -1663,7 +1663,7 @@ defmodule Mobilizon.Events do
@spec filter_future_events(Ecto.Queryable.t(), boolean) :: Ecto.Query.t()
defp filter_future_events(query, true) do
from(q in query,
where: q.begins_on > ^DateTime.utc_now()
where: q.ends_on > ^DateTime.utc_now()
)
end