Added {favorite} template, partial fix for #289
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user