MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / _get_project_cache

Method _get_project_cache

mod/project/java/groupMod.py:726–737  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

724 os.makedirs(Group.GROUP_TMP_DIR)
725
726 def _get_project_cache(self):
727 if self.project_cache is not None:
728 return
729 java_projects = public.M("sites").where('project_type=?', ('Java',)).select()
730 _cache = {}
731 for i in java_projects:
732 config = json.loads(i["project_config"])
733 if config["java_type"] in self.cache_type:
734 i["project_config"] = config
735 _cache[i["id"]] = i
736
737 self.project_cache = _cache
738
739 def group_list(self) -> List[dict]:
740 group_list = []

Callers 1

group_listMethod · 0.95

Calls 4

selectMethod · 0.45
whereMethod · 0.45
MMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected