Fixed cli status for --only-new and 0 photos to export
This commit is contained in:
@@ -1539,12 +1539,12 @@ def export(
|
|||||||
else:
|
else:
|
||||||
raise ValueError(e)
|
raise ValueError(e)
|
||||||
|
|
||||||
if photos:
|
if photos and only_new:
|
||||||
if only_new:
|
|
||||||
# ignore previously exported files
|
# ignore previously exported files
|
||||||
previous_uuids = {uuid: 1 for uuid in export_db.get_previous_uuids()}
|
previous_uuids = {uuid: 1 for uuid in export_db.get_previous_uuids()}
|
||||||
photos = [p for p in photos if p.uuid not in previous_uuids]
|
photos = [p for p in photos if p.uuid not in previous_uuids]
|
||||||
|
|
||||||
|
if photos:
|
||||||
num_photos = len(photos)
|
num_photos = len(photos)
|
||||||
# TODO: photos or photo appears several times, pull into a separate function
|
# TODO: photos or photo appears several times, pull into a separate function
|
||||||
photo_str = "photos" if num_photos > 1 else "photo"
|
photo_str = "photos" if num_photos > 1 else "photo"
|
||||||
|
|||||||
Reference in New Issue
Block a user