xjconline hace 6 días
padre
commit
1c3d505cf0
Se han modificado 2 ficheros con 7 adiciones y 6 borrados
  1. 1 0
      src/utils/plottool.py
  2. 6 6
      src/weixin/controls.py

+ 1 - 0
src/utils/plottool.py

@@ -85,6 +85,7 @@ def plot_records_as_table_and_convert_to_png(
             table[i + offset, j].set_fontsize(14)
             if not table_data[i][5].startswith('-'):
                 table[i + offset, j].get_text().set_color('red')
+            
 
     ax.add_table(table)
     if localfile:

+ 6 - 6
src/weixin/controls.py

@@ -901,20 +901,20 @@ def add_model(cls,**kwargs):
 
                     obj.total_income = round(total_income,4)
                         
-                if float(today_income)>0.4:                                                   
-                    raise ce.TipException(u"今日盈利已超过40%,请仔细核对数据或直接联系顽主!")
+                if float(today_income)>0.6:                                                   
+                    raise ce.TipException(u"今日盈利已超过60%,请仔细核对数据或直接联系顽主!")
                     
-                if float(total_income)>8:                                                    
+                if float(total_income)>20:                                                    
                     raise ce.TipException(u"请仔细核对数据或直接联系顽主!")
                     
             else:
                 today_income = (today_fund - yesterday_fund)/float(yesterday_fund) if yesterday_fund else 0.0
                 total_income = (today_fund - init_fund)/float(init_fund) if init_fund else 0.0
 
-                if float(today_income)>0.4:                                                    
-                    raise ce.TipException(u"今日盈利已超过40%,请仔细核对数据或直接联系顽主!")
+                if float(today_income)>0.6:                                                    
+                    raise ce.TipException(u"今日盈利已超过60%,请仔细核对数据或直接联系顽主!")
 
-                if float(total_income)>8:                                                    
+                if float(total_income)>20:                                                    
                     raise ce.TipException(u"请仔细核对数据或直接联系顽主!")
 
                 obj.today_income = round(today_income,4)