|
@@ -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:
|