Fixes regression for #640

This commit is contained in:
Rhet Turnbull
2023-02-05 18:00:04 -08:00
parent 007f0e0960
commit 0982d0c548
4 changed files with 43 additions and 54 deletions

View File

@@ -1348,6 +1348,7 @@ def export(
query_kwargs["missing_bursts"] = (
(download_missing and use_photokit) or not download_missing,
)
query_kwargs["burst_photos"] = export_bursts
query_options = query_options_from_kwargs(**query_kwargs)
try:
photos = photosdb.query(query_options)
@@ -1423,7 +1424,6 @@ def export(
kwargs["export_dir"] = dest
kwargs["export_preview"] = preview
export_results = export_photo(**kwargs)
if post_function:
for function in post_function:
# post function is tuple of (function, filename.py::function_name)

View File

@@ -28,7 +28,7 @@ class QueryOptions:
added_before: search for photos added before a given date
added_in_last: search for photos added in last X datetime.timedelta
album: list of album names to search for
burst_photos: search for burst photos
burst_photos: include all associated burst photos for photos in query results
burst: search for burst photos
cloudasset: search for photos that are managed by iCloud
deleted_only: search only for deleted photos