Просмотр исходного кода

Merge branch 'master' of git.miralo.xyz:AudioValid/fourier-ondemand

Hugo лет назад: 4
Родитель
Сommit
64d63ed75f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      ondemand/service.py

+ 2 - 2
ondemand/service.py

@@ -143,7 +143,7 @@ def process_queue_with_threads():
                 try:
                     item = queue.get(False)
                     station = item['station']
-                    date = dateutil.parser.parse(item['date'])
+                    date = dateutil.parser.parse(item['date'], ignoretz=True)
                     calibration = calibrations.get(station)
 
                     audios = [f for f in iterate_audios(
@@ -191,7 +191,7 @@ def process_segment(item, audios=None, calibration=None):
         calibration = calibrations.get(station)
 
     tolerance = calibration['tolerance']
-    date = dateutil.parser.parse(item['fecha'])
+    date = dateutil.parser.parse(item['fecha'], ignoretz=True)
     segment_size = calibration['segmentSize']
     audio_length = 0