This commit is contained in:
Rhet Turnbull 2019-08-19 21:29:27 -07:00
parent e35876a1ba
commit 332cbe3e37
3 changed files with 7 additions and 5 deletions

View File

@ -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]

View File

@ -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(

View File

@ -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",