mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 10:33:01 +03:00
Allow empty city geonames in exports (#4079)
This commit is contained in:
parent
84ed7988a8
commit
b1c13617b3
@ -470,8 +470,8 @@ defmodule Plausible.Exports do
|
||||
defp export_locations_q(site_id, timezone, date_range) do
|
||||
from s in sampled("sessions_v2"),
|
||||
where: ^export_filter(site_id, date_range),
|
||||
where: s.city_geoname_id != 0 and s.country_code != "\0\0" and s.country_code != "ZZ",
|
||||
group_by: [selected_as(:date), s.country_code, selected_as(:region), s.city_geoname_id],
|
||||
where: s.country_code != "\0\0" and s.country_code != "ZZ",
|
||||
group_by: [selected_as(:date), s.country_code, s.subdivision1_code, s.city_geoname_id],
|
||||
order_by: selected_as(:date),
|
||||
select: [
|
||||
date(s.timestamp, ^timezone),
|
||||
|
Loading…
Reference in New Issue
Block a user