From 332cbe3e37396599dfa15245f5b19dee8087920b Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Mon, 19 Aug 2019 21:29:27 -0700 Subject: [PATCH] black --- osxphotos/__init__.py | 6 ++++-- osxphotos/cmd_line.py | 4 ++-- setup.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/osxphotos/__init__.py b/osxphotos/__init__.py index 70c119bf..887dd92a 100644 --- a/osxphotos/__init__.py +++ b/osxphotos/__init__.py @@ -439,8 +439,10 @@ class PhotosDB: self._dbphotos[uuid]["lastmodifieddate"] = datetime.fromtimestamp( row[5] + td ) - - self._dbphotos[uuid]["imageDate"] = datetime.fromtimestamp(row[5] + td) # - row[9], timezone.utc) + + self._dbphotos[uuid]["imageDate"] = datetime.fromtimestamp( + row[5] + td + ) # - row[9], timezone.utc) self._dbphotos[uuid]["mainRating"] = row[6] self._dbphotos[uuid]["hasAdjustments"] = row[7] self._dbphotos[uuid]["hasKeywords"] = row[8] diff --git a/osxphotos/cmd_line.py b/osxphotos/cmd_line.py index e3cc7c05..9ed53bfc 100644 --- a/osxphotos/cmd_line.py +++ b/osxphotos/cmd_line.py @@ -124,9 +124,9 @@ def dump(cli_obj): def query(ctx, cli_obj, keyword, person, album, uuid, json): """ query the Photos database using 1 or more search options """ - #if no query terms, show help and return + # if no query terms, show help and return if not keyword and not person and not album and not uuid: - print(cli.commands['query'].get_help(ctx)) + print(cli.commands["query"].get_help(ctx)) return else: photos = cli_obj.photosdb.photos( diff --git a/setup.py b/setup.py index 22c5de92..946fc522 100755 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ with open(path.join(this_directory, "README.md"), encoding="utf-8") as f: setup( name="osxphotos", - version="0.11.0, + version="0.11.0", description="Manipulate (read-only) Apple's Photos app library on Mac OS X", long_description=long_description, long_description_content_type="text/markdown",