Merge branch 'master' of http://116.63.159.166:8888/pengsen/etl_tfse
This commit is contained in:
commit
5cf59bf10d
|
@ -18,7 +18,7 @@ def drag_company_data_request(company_name):
|
|||
Returns:
|
||||
-
|
||||
"""
|
||||
url = "http://139.9.249.34:51009/api/tyc/drag_data"
|
||||
url = "http://api.fecribd.com/api/tyc/drag_data"
|
||||
headers = {'token': "uzdq51N4!I0%HY4sCaQ!aeCSIDIVIdAM"}
|
||||
data = {"企业名称": company_name}
|
||||
res = requests.post(url=url, headers=headers, data=json.dumps(data))
|
||||
|
@ -365,7 +365,7 @@ def financial_analysis(rid):
|
|||
|
||||
# 与去年对比
|
||||
data_last = list(json.loads(df_last[['净资产收益率', '存货周转率', '已获利息倍数', '应收账款周转率', '总资产周转率', '总资产增长率', '总资产报酬率', '技术投入比率', '营业增长率', '资产负债率', '速动比率']].T.to_json()).values())
|
||||
url = "http://139.9.249.34:51012/tfse_rating/rating/financial_score"
|
||||
url = "http://api.fecribd.com/tfse_rating/rating/financial_score"
|
||||
headers = {'token': "X0gSlC!YE8jmr2jJr&ilcjS83j!tsoh5", "content-type": "application/json"}
|
||||
data = {"财务指标": data_last, "所属行业": industry}
|
||||
score_last_origin = json.loads(requests.post(url=url, headers=headers, data=json.dumps(data)).text)['result']
|
||||
|
|
|
@ -57,6 +57,6 @@ def change_log_detail(param):
|
|||
id_list.append(1 if df_sub1['companyId'].values[0] is None else 0)
|
||||
df['detail'] = detail_list
|
||||
df['companyId'] = id_list
|
||||
df = df.drop(df[df['companyId'] == 0].index)
|
||||
df.drop(df[df['companyId'] == 0].index)
|
||||
result = list(json.loads(df[['title', 'total', 'detail']].T.to_json()).values())
|
||||
return result
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
flask~=1.1.2
|
||||
markupsafe==2.0.1
|
||||
itsdangerous==2.0.1
|
||||
flask
|
||||
flask_cors
|
||||
gunicorn
|
||||
gevent
|
||||
|
|
Loading…
Reference in New Issue