Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/superannotate/lib/app/interface/base_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import platform
import sys
import typing
from functools import lru_cache
from inspect import signature
from pathlib import Path
from types import FunctionType
Expand Down Expand Up @@ -128,6 +129,7 @@ def get_mp_instance(self) -> Mixpanel:
return Mixpanel(mp_token)

@staticmethod
@lru_cache
def get_default_payload(team_name, user_email):
return {
"SDK": True,
Expand All @@ -136,6 +138,7 @@ def get_default_payload(team_name, user_email):
"Version": os.environ["sa_version"],
"Python version": platform.python_version(),
"Python interpreter type": platform.python_implementation(),
"Env": os.environ.get("SA_ENV", "N/A"),
}

def __init__(self, function):
Expand Down