我丢,发现存货周转率放大了100倍,现在改过来了
This commit is contained in:
parent
6abdc4da65
commit
55ecdf279b
|
@ -228,11 +228,3 @@ class RatingModel:
|
|||
item['企业ID'] = self.cid
|
||||
item['企业名称'] = self.company
|
||||
update_data('企业', '指标明细', {"企业ID": self.cid, "年报期": item['年报期']}, item)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
with open('../Rating/static/test/info_demo.json', 'r', encoding='utf-8') as f:
|
||||
data = json.load(f)
|
||||
model = RatingModel()
|
||||
model.prepare_params(data)
|
||||
model.calculate_business_elements_score()
|
||||
|
|
|
@ -106,7 +106,7 @@ def ivtt(param1, param2, param3):
|
|||
if param2 + param3 == 0:
|
||||
return None
|
||||
else:
|
||||
value = param1 / (param2 + param3) * 2 * 100
|
||||
value = param1 / (param2 + param3) * 2
|
||||
value = round(value, 2)
|
||||
return value
|
||||
|
||||
|
|
Loading…
Reference in New Issue