Fixed AlbumInfo.owner, #239

This commit is contained in:
Rhet Turnbull
2021-09-26 15:52:38 -07:00
parent 3abaa5ae84
commit bfd6274602
2 changed files with 12 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
""" version info """ """ version info """
__version__ = "0.42.88" __version__ = "0.42.89"

View File

@@ -141,11 +141,17 @@ class AlbumInfoBaseClass:
try: try:
return self._owner return self._owner
except AttributeError: except AttributeError:
query = get_query( try:
"cloud_album_owner", photos_ver=self._db._photos_ver, uuid=self.uuid personid = self._db._dbalbum_details[self.uuid][
) "cloudownerhashedpersonid"
result = self._db.execute(query).fetchone() ]
self._owner = result[0] if result else None self._owner = (
self._db._db_hashed_person_id[personid]["full_name"]
if personid
else None
)
except KeyError:
self._owner = None
return self._owner return self._owner
def __len__(self): def __len__(self):