Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar committed Nov 7, 2023
1 parent e02352c commit 90dc073
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion posthog/queries/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ def property_to_Q(
cohorts_cache: Optional[Dict[int, Cohort]] = None,
using_database: str = "default",
) -> Q:
if property.type not in ["person", "group", "cohort"]:
if property.type not in ["person", "group", "cohort", "event"]:
# We need to support event type for backwards compatibility, even though it's treated as a person property type
raise ValueError(f"property_to_Q: type is not supported: {repr(property.type)}")

value = property._parse_value(property.value)
Expand Down

0 comments on commit 90dc073

Please sign in to comment.