罗俊辉 пре 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