Fix posthog (#1992)
This commit is contained in:
parent
e15710de17
commit
b4bb849388
@ -45,6 +45,8 @@ class Dirs(SimpleNamespace):
|
||||
WEB_ASSETS = os.path.join(WEB, "public")
|
||||
# The env json file.
|
||||
ENV_JSON = os.path.join(WEB, "env.json")
|
||||
# The reflex json file.
|
||||
REFLEX_JSON = os.path.join(WEB, "reflex.json")
|
||||
|
||||
|
||||
class Reflex(SimpleNamespace):
|
||||
|
@ -90,7 +90,7 @@ def send(event: str, telemetry_enabled: bool | None = None) -> bool:
|
||||
|
||||
try:
|
||||
telemetry = Telemetry()
|
||||
with open(constants.REFLEX_JSON) as f: # type: ignore
|
||||
with open(constants.Dirs.REFLEX_JSON) as f:
|
||||
reflex_json = json.load(f)
|
||||
distinct_id = reflex_json["project_hash"]
|
||||
post_hog = {
|
||||
|
Loading…
Reference in New Issue
Block a user