浏览代码

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))