added __len__ to PhotosDB, closes #44

This commit is contained in:
Rhet Turnbull
2020-04-18 23:57:34 -07:00
parent 87eb84fddd
commit 1867c1d747
3 changed files with 18 additions and 0 deletions

View File

@@ -2156,3 +2156,7 @@ class PhotosDB:
return self.__dict__ == other.__dict__
return False
def __len__(self):
""" returns number of photos in the database """
return len(self._dbphotos)