소스 검색

获取 rov 数据

罗俊辉 1 년 전
부모
커밋
b9354ca298
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      data_process/update_mysql_data.py

+ 1 - 1
data_process/update_mysql_data.py

@@ -62,7 +62,7 @@ class DataProcessor(object):
                 if total_view == 0:
                     label = None
                 else:
-                    label = total_return / total_view
+                    label = float(total_return) / float(total_view)
             else:
                 label = None
             return label, label_dt