Fix to CLI info to correct number of photos/shared photos reported

This commit is contained in:
Rhet Turnbull
2019-12-31 06:45:33 -08:00
parent d589fcb9b1
commit f493ca4b7f
2 changed files with 5 additions and 3 deletions

View File

@@ -101,10 +101,12 @@ def info(cli_obj):
info["database_version"] = pdb.db_version info["database_version"] = pdb.db_version
photos = pdb.photos() photos = pdb.photos()
info["photo_count"] = len(photos) not_shared_photos = [p for p in photos if not p.shared]
info["photo_count"] = len(not_shared_photos)
movies = pdb.photos(images=False, movies=True) movies = pdb.photos(images=False, movies=True)
info["movie_count"] = len(movies) not_shared_movies = [p for p in movies if not p.shared]
info["movie_count"] = len(not_shared_movies)
if pdb.db_version >= _PHOTOS_5_VERSION: if pdb.db_version >= _PHOTOS_5_VERSION:
shared_photos = [p for p in photos if p.shared] shared_photos = [p for p in photos if p.shared]

View File

@@ -1,3 +1,3 @@
""" version info """ """ version info """
__version__ = "0.19.02" __version__ = "0.19.03"