0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 00:47:50 +01:00

Branch earlier on sessions view when filtering for sessions with recordings

This commit is contained in:
James Greenhill 2021-07-08 11:18:08 -07:00
parent 7954477ba7
commit aca4cf7f33

View File

@ -61,7 +61,9 @@ class ClickhouseSessionsList(SessionsList):
self._add_person_properties(result)
return filter_sessions_by_recordings(self.team, result, self.filter), pagination
if self.filter.limit_by_recordings:
return filter_sessions_by_recordings(self.team, result, self.filter), pagination
return result, pagination
def fetch_distinct_ids(
self, action_filters: ActionFiltersSQL, date_from: str, date_to: str, limit: int, distinct_id_offset: int