diff --git a/src/superannotate/lib/app/interface/base_interface.py b/src/superannotate/lib/app/interface/base_interface.py index db7e353a..699b74a2 100644 --- a/src/superannotate/lib/app/interface/base_interface.py +++ b/src/superannotate/lib/app/interface/base_interface.py @@ -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 @@ -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, @@ -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):