Fix to CLI info to correct number of photos/shared photos reported
This commit is contained in:
@@ -101,10 +101,12 @@ def info(cli_obj):
|
||||
info["database_version"] = pdb.db_version
|
||||
|
||||
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)
|
||||
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:
|
||||
shared_photos = [p for p in photos if p.shared]
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
""" version info """
|
||||
|
||||
__version__ = "0.19.02"
|
||||
__version__ = "0.19.03"
|
||||
|
||||
Reference in New Issue
Block a user