Kaynağa Gözat

tolerance compensation to the end of hour

Gamaliel Espinoza 7 yıl önce
ebeveyn
işleme
10773f39ce
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      ondemand/service.py

+ 1 - 1
ondemand/service.py

@@ -164,7 +164,7 @@ def iterate_audios(dt, station):
     station must match too """
     from_time = time.mktime(dt.timetuple()) \
               - AHEAD_TIME_AUDIO_TOLERANCE
-    to_time = from_time + 3599
+    to_time = from_time + 3599 + AHEAD_TIME_AUDIO_TOLERANCE
 
     print('from {} to {}'.format(from_time, to_time))