Commit 99e568d6 authored by stephen.wang's avatar stephen.wang

修正benchmark bug

parent 5f50db57
...@@ -47,6 +47,7 @@ class BenchmarkAlligamReportor(RoboReportor): ...@@ -47,6 +47,7 @@ class BenchmarkAlligamReportor(RoboReportor):
response = requests.get(f'http://jdcprod.thiztech.com/api/datas/asset-value?{urlencode(params)}').json() response = requests.get(f'http://jdcprod.thiztech.com/api/datas/asset-value?{urlencode(params)}').json()
if not response['success']: if not response['success']:
raise Exception(f'''request jdc alligam failed: {response['status']}''') raise Exception(f'''request jdc alligam failed: {response['status']}''')
if response['body']['content']:
rb.batch_insert([{ rb.batch_insert([{
'date': dt.fromtimestamp(x['date'] / 1000), 'date': dt.fromtimestamp(x['date'] / 1000),
'module': self.module_name, 'module': self.module_name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment