MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / result

Method result

server/projects/main/apps/job/models/base.py:400–412  ·  view source on GitHub ↗

下载结果

(self)

Source from the content-addressed store, hash-verified

398
399 @property
400 def result(self):
401 """下载结果
402 """
403 try:
404 if os.path.isfile(self.result_path):
405 with open(self.result_path, "r") as f:
406 return json.loads(f.read())
407 else:
408 content = file_server.get_file(self.result_path)
409 return json.loads(content)
410 except Exception as e:
411 logger.exception(e)
412 return None
413
414 @result.setter
415 def result(self, result):

Callers

nothing calls this directly

Calls 7

get_project_idMethod · 0.95
get_job_idMethod · 0.95
CDErrorBaseClass · 0.90
exceptionMethod · 0.80
readMethod · 0.45
get_fileMethod · 0.45
put_fileMethod · 0.45

Tested by

no test coverage detected