File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
src/superannotate/lib/infrastructure Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ def __init__(self, config_path=constances.CONFIG_FILE_LOCATION):
6161 self ._team_id = None
6262 self ._user_id = None
6363 self ._team_name = None
64- self ._team = None
6564 self .init (config_path )
6665
6766 def init (self , config_path ):
@@ -77,7 +76,8 @@ def init(self, config_path):
7776 main_endpoint = constances .BACKEND_URL
7877 if not token :
7978 self .configs .insert (ConfigEntity ("token" , "" ))
80- self ._logger .warning (f"Fill token in the { config_path } " )
79+ # TODO check
80+ #self._logger.warning(f"Fill token in the {config_path}")
8181 return
8282 verify_ssl_entity = self .configs .get_one ("ssl_verify" )
8383 if not verify_ssl_entity :
@@ -97,7 +97,7 @@ def init(self, config_path):
9797 self ._backend_client .get_session .cache_clear ()
9898 if self .is_valid_token (token ):
9999 self ._team_id = int (token .split ("=" )[- 1 ])
100- self ._team = None
100+ self ._teams = None
101101
102102 @staticmethod
103103 def is_valid_token (token : str ):
@@ -152,11 +152,10 @@ def folders(self):
152152 return self ._folders
153153
154154 def get_team (self ):
155- if not self ._team :
156- self ._team = usecases .GetTeamUseCase (
157- teams = self .teams , team_id = self .team_id
158- ).execute ()
159- return self ._team
155+ return usecases .GetTeamUseCase (
156+ teams = self .teams , team_id = self .team_id
157+ ).execute ()
158+
160159
161160 @property
162161 def ml_models (self ):
You can’t perform that action at this time.
0 commit comments