Cleaned up comments

This commit is contained in:
Rhet Turnbull
2020-01-19 22:21:46 -08:00
parent bed7378039
commit f1e872401c

View File

@@ -15,9 +15,6 @@ from ._constants import _EXIF_TOOL_URL, _PHOTOS_5_VERSION
from ._version import __version__ from ._version import __version__
from .utils import create_path_by_date, _copy_file from .utils import create_path_by_date, _copy_file
# TODO: add "--any" to search any field (e.g. keyword, description, title contains "wedding") (add case insensitive option)
# TODO: add search for filename
def get_photos_db(*db_options): def get_photos_db(*db_options):
""" Return path to photos db, select first non-None arg """ Return path to photos db, select first non-None arg
@@ -367,6 +364,9 @@ def dump(ctx, cli_obj, db, json_, photos_library):
@click.pass_context @click.pass_context
def list_libraries(ctx, cli_obj, json_): def list_libraries(ctx, cli_obj, json_):
""" Print list of Photos libraries found on the system. """ """ Print list of Photos libraries found on the system. """
# implemented in _list_libraries so it can be called by other CLI functions
# without errors due to passing ctx and cli_obj
_list_libraries(json_=json_ or cli_obj.json, error=False) _list_libraries(json_=json_ or cli_obj.json, error=False)
@@ -762,7 +762,6 @@ def export(
if only_photos: if only_photos:
ismovie = False ismovie = False
# below needed for to make CliRunner work for testing # below needed for to make CliRunner work for testing
cli_db = cli_obj.db if cli_obj is not None else None cli_db = cli_obj.db if cli_obj is not None else None
db = get_photos_db(*photos_library, db, cli_db) db = get_photos_db(*photos_library, db, cli_db)