stanley-king 2 years atrás
parent
commit
eac90be48d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      plot/refill/MerchantCovRatioPainter.py

+ 1 - 4
plot/refill/MerchantCovRatioPainter.py

@@ -37,10 +37,7 @@ class MerchantCovRatioPainter(MerchantPainter):
 
         left_len = self._start_time - _start_time
         right_len = _end_time - self._end_time
-        cur_time = int(time.time())
-        if self._end_time > cur_time:
-            right_len += self._end_time - cur_time
-            
+
         mchid_ratios = []
         for _mchid, _card_type, _spec, _data in gen:
             succ, count, y = calc_cov_mchratios(_data, pos_map, _start_time - day_stamp, _end_time - day_stamp, window, left_len, right_len)