Added {favorite} template, partial fix for #289

This commit is contained in:
Rhet Turnbull
2021-04-11 19:45:50 -07:00
parent 958f8c343a
commit d9f24307ac
5 changed files with 27 additions and 0 deletions

View File

@@ -23,6 +23,14 @@ class PhotoInfoMock(PhotoInfo):
else self._photo.hdr
)
@property
def favorite(self):
return (
self._mock_favorite
if getattr(self, "_mock_favorite", None) is not None
else self._photo.favorite
)
@property
def hasadjustments(self):
return (