Skip to content

Commit

Permalink
Fix circular imports
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Dec 21, 2024
1 parent 68f2ade commit 7ab294a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion posthog/hogql/database/schema/sessions_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
ChannelTypeExprs,
DEFAULT_CHANNEL_TYPES,
)
from posthog.hogql.database.schema.sessions_v2 import DEFAULT_BOUNCE_RATE_DURATION_SECONDS
from posthog.hogql.database.schema.util.where_clause_extractor import SessionMinTimestampWhereClauseExtractorV1
from posthog.hogql.errors import ResolutionError
from posthog.models.property_definition import PropertyType
Expand All @@ -36,6 +35,8 @@
if TYPE_CHECKING:
from posthog.models.team import Team

DEFAULT_BOUNCE_RATE_DURATION_SECONDS = 10

RAW_SESSIONS_FIELDS: dict[str, FieldOrTable] = {
"id": StringDatabaseField(name="session_id"),
# TODO remove this, it's a duplicate of the correct session_id field below to get some trends working on a deadline
Expand Down
4 changes: 1 addition & 3 deletions posthog/hogql/database/schema/sessions_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
ChannelTypeExprs,
DEFAULT_CHANNEL_TYPES,
)
from posthog.hogql.database.schema.sessions_v1 import null_if_empty
from posthog.hogql.database.schema.sessions_v1 import null_if_empty, DEFAULT_BOUNCE_RATE_DURATION_SECONDS
from posthog.hogql.database.schema.util.where_clause_extractor import SessionMinTimestampWhereClauseExtractorV2
from posthog.hogql.errors import ResolutionError
from posthog.hogql.modifiers import create_default_modifiers_for_team
Expand All @@ -38,8 +38,6 @@
from posthog.models.team import Team


DEFAULT_BOUNCE_RATE_DURATION_SECONDS = 10

RAW_SESSIONS_FIELDS: dict[str, FieldOrTable] = {
"session_id_v7": IntegerDatabaseField(name="session_id_v7"),
"team_id": IntegerDatabaseField(name="team_id"),
Expand Down

0 comments on commit 7ab294a

Please sign in to comment.