stanley-king %!s(int64=2) %!d(string=hai) anos
pai
achega
776a2dcc6d
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  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: