stanley-king 2 年之前
父節點
當前提交
776a2dcc6d
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      plot/refill/MProfitRatioCalc.py

+ 4 - 4
plot/refill/MProfitRatioCalc.py

@@ -37,10 +37,10 @@ class MProfitRatioCalc(MerchantCalc):
             logger.debug(f'mchid={mchid} period={period}')
 
             end_time = int(time.time())
-            if period == 86400:
-                cur_day = day_stamp(end_time)
-                period = end_time - cur_day
-                logger.debug(f'mchid={mchid} period={period}')
+            # if period == 86400:
+            #     cur_day = day_stamp(end_time)
+            #     period = end_time - cur_day
+            #     logger.debug(f'mchid={mchid} period={period}')
 
             days, start_time, end_time = self.calc_time(reader, end_time - period, end_time)
             if len(days) == 0: