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

Method get_project_find

class/projectModel/javaModel.py:2305–2317  ·  view source on GitHub ↗

@name 获取指定项目配置 @author hwliang<2021-08-09> @param project_name 项目名称 @return dict

(self, project_name)

Source from the content-addressed store, hash-verified

2303 return write_speed, read_speed
2304
2305 def get_project_find(self, project_name):
2306 ''&#x27;
2307 @name 获取指定项目配置
2308 @author hwliang<2021-08-09>
2309 @param project_name<string> 项目名称
2310 @return dict
2311 ''&#x27;
2312 project_info = public.M('sites').where('project_type=? AND name=?', ('Java', project_name)).find()
2313 if isinstance(project_info, str):
2314 raise public.PanelError('数据库查询错误:' + project_info)
2315 if not project_info: return False
2316 project_info['project_config'] = json.loads(project_info['project_config'])
2317 return project_info
2318
2319 def project_remove_domain(self, get):
2320 ''&#x27;

Callers 15

set_configMethod · 0.95
clear_configMethod · 0.95
get_project_run_stateMethod · 0.95
get_project_load_infoMethod · 0.95
project_remove_domainMethod · 0.95
project_add_domainMethod · 0.95
get_other_pidsMethod · 0.95
stop_projectMethod · 0.95
restart_projectMethod · 0.95
start_projectMethod · 0.95
return_cmdMethod · 0.95

Calls 4

findMethod · 0.45
whereMethod · 0.45
MMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected