ソースを参照

from date to date

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