From: Frédéric Péters Date: Wed, 31 Mar 2010 09:47:57 +0000 (+0200) Subject: Fixed again passing of 24 hours mark, as patch got lost X-Git-Url: https://git.0d.be/?p=pige-extractor.git;a=commitdiff_plain;h=ab6da8dab1bb508fb0c115d0c83e6c947cdedfa5 Fixed again passing of 24 hours mark, as patch got lost --- diff --git a/download.cgi b/download.cgi index 58e986a..43d9f06 100755 --- a/download.cgi +++ b/download.cgi @@ -61,7 +61,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)])