Skip to content

Commit

Permalink
no data if no cohorts
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Apr 16, 2024
1 parent f1a2f78 commit 6cc97e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion posthog/hogql/database/schema/cohort_people.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def select_from_cohort_people_table(requested_fields: Dict[str, List[str | int]]
exprs=[ast.Field(chain=[table_name, "cohort_id"]), ast.Field(chain=[table_name, "version"])]
),
right=ast.Constant(value=cohort_tuples),
),
)
if len(cohort_tuples) > 0
else ast.Constant(value=False),
)


Expand Down

0 comments on commit 6cc97e1

Please sign in to comment.