Skip to content

Commit 9ba3d1b

Browse files
author
Christian Holl
committed
This should fix #7
1 parent 33164e3 commit 9ba3d1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/FlashAir/card.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ def sync_new_pictures_since_start(self,remote_path='',local_path='',extensions=[
285285
return ()
286286
for entry in outlist:
287287
if ((entry.file_name.split('.')[-1].upper() in extensions) or len(extensions)==0):
288-
if(entry.date>=self.start_date and entry.time>self.start_time):
289-
if(not self.download_file_list_entry(entry, local_path)):
290-
last_file=local_path+'/'+entry.file_name
288+
if(entry.date>=self.start_date):
289+
if(entry.date>self.start_date or entry.time>self.start_time):
290+
if(not self.download_file_list_entry(entry, local_path)):
291+
last_file=local_path+'/'+entry.file_name
291292
return last_file

0 commit comments

Comments
 (0)