Explorar el Código

tolerance compensation to the end of hour

Gamaliel Espinoza hace 7 años
padre
commit
10773f39ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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))