Gamaliel Espinoza преди 7 години
родител
ревизия
4b767ddb65
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      ondemand/service.py

+ 2 - 2
ondemand/service.py

@@ -155,6 +155,8 @@ def iterate_audios(dt, station):
     from_time = time.mktime(dt.timetuple())
     to_time = from_time + 5 * 60
 
+    print('from {} to {}'.format(from_time, to_time))
+
     cursor = db.cursor()
     cursor.execute((
         'select "filename", "timestamp" '
@@ -168,8 +170,6 @@ def iterate_audios(dt, station):
     files = [file for file in cursor]
     cursor.close()
 
-    print('files found {}'.format(len(files)))
-
     for mp3 in files:
         mp3path, ts = mp3
         mp3name = os.path.basename(mp3path)