From 9ba3d1bc0c6f364c2acc79fdb624f7e78d001e43 Mon Sep 17 00:00:00 2001 From: Christian Holl Date: Wed, 19 Mar 2014 11:11:05 +0100 Subject: [PATCH] This should fix #7 --- src/FlashAir/card.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/FlashAir/card.py b/src/FlashAir/card.py index b3d494b..76ede75 100644 --- a/src/FlashAir/card.py +++ b/src/FlashAir/card.py @@ -285,7 +285,8 @@ def sync_new_pictures_since_start(self,remote_path='',local_path='',extensions=[ return () for entry in outlist: if ((entry.file_name.split('.')[-1].upper() in extensions) or len(extensions)==0): - if(entry.date>=self.start_date and entry.time>self.start_time): - if(not self.download_file_list_entry(entry, local_path)): - last_file=local_path+'/'+entry.file_name + if(entry.date>=self.start_date): + if(entry.date>self.start_date or entry.time>self.start_time): + if(not self.download_file_list_entry(entry, local_path)): + last_file=local_path+'/'+entry.file_name return last_file