diff --git a/lib/plausible/stats/base.ex b/lib/plausible/stats/base.ex index 6cf84f0045553090e1158981ef6947971b487dee..d59a741a888bf950429e32c45e74dab3345464ac 100644 --- a/lib/plausible/stats/base.ex +++ b/lib/plausible/stats/base.ex @@ -127,7 +127,7 @@ defmodule Plausible.Stats.Base do from( s in "sessions", where: s.domain == ^site.domain, - where: s.timestamp >= ^first_datetime and s.start < ^last_datetime + where: s.start >= ^first_datetime and s.start < ^last_datetime ) |> add_sample_hint(query)