Quellcode durchsuchen

tolerance compensation to the end of hour

Gamaliel Espinoza vor 7 Jahren
Ursprung
Commit
10773f39ce
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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))