Skip to content

Commit aaf812b

Browse files
committed
add all arguments to posthog events capture
1 parent eb45659 commit aaf812b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

application/web/web_main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def fetch_job() -> Any:
356356
@app.route("/rest/v1/standards", methods=["GET"])
357357
def standards() -> Any:
358358
if posthog:
359-
posthog.capture(f"standards")
359+
posthog.capture(f"standards","")
360360

361361
database = db.Node_collection()
362362
standards = database.standards()
@@ -407,7 +407,7 @@ def find_root_cres() -> Any:
407407
408408
"""
409409
if posthog:
410-
posthog.capture(f"find_root_cres")
410+
posthog.capture(f"find_root_cres","")
411411

412412
database = db.Node_collection()
413413
# opt_osib = request.args.get("osib")
@@ -590,7 +590,7 @@ def login_r(*args, **kwargs):
590590
def chat_cre() -> Any:
591591
message = request.get_json(force=True)
592592
if posthog:
593-
posthog.capture(f"chat_cre")
593+
posthog.capture(f"chat_cre","")
594594

595595
database = db.Node_collection()
596596
prompt = prompt_client.PromptHandler(database)
@@ -709,7 +709,7 @@ def logout():
709709
def all_cres() -> Any:
710710
database = db.Node_collection()
711711
if posthog:
712-
posthog.capture(f"all_cres")
712+
posthog.capture(f"all_cres","")
713713

714714
page = 1
715715
per_page = ITEMS_PER_PAGE
@@ -735,7 +735,7 @@ def all_cres() -> Any:
735735
@app.route("/rest/v1/cre_csv", methods=["GET"])
736736
def get_cre_csv() -> Any:
737737
if posthog:
738-
posthog.capture(f"get_cre_csv")
738+
posthog.capture(f"get_cre_csv","")
739739

740740
database = db.Node_collection()
741741
root_cres = database.get_root_cres()

0 commit comments

Comments
 (0)