Преглед на файлове

tolerance compensation to the end of hour

Gamaliel Espinoza преди 7 години
родител
ревизия
10773f39ce
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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))