]> git.0d.be Git - pige-extractor.git/commitdiff
Fixed getting archive passing the midnight mark
authorFrédéric Péters <fpeters@0d.be>
Fri, 19 Feb 2010 14:52:52 +0000 (15:52 +0100)
committerFrédéric Péters <fpeters@0d.be>
Fri, 19 Feb 2010 14:52:52 +0000 (15:52 +0100)
download.cgi

index e8c6876b349e52641dc3cad82f170254aa05357c..33b8ea7c9d5ad7f733aeb124f55e6f64d25b6a32 100755 (executable)
@@ -34,7 +34,7 @@ os.chdir('/home/alsa-record/')
 def get_filenames():
     path = start.strftime('%Y/%m-%b/%d-%a/')
     filenames = [os.path.join(path, x) for x in os.listdir(path)]
-    if end < start:
+    if end.hour < start.hour:
         path = end.strftime('%Y/%m-%b/%d-%a/')
         if os.path.exists(path):
             filenames.extend([os.path.join(path, x) for x in os.listdir(path)])