Skip to content

Commit

Permalink
This should fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Holl committed Mar 19, 2014
1 parent 33164e3 commit 9ba3d1b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/FlashAir/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9ba3d1b

Please sign in to comment.