models ignored_recurive: Reworked for simplicity

master
Felix Stupp 3 years ago
parent 099b3423e9
commit 5743b70d96
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -347,7 +347,7 @@ class MediaElement(db.Entity, Tagable):
@property
def ignored_recursive(self) -> bool:
return orm.count(link for link in MediaCollectionLink if link.element == self and link.collection.ignored == True) > 0
return orm.count(link for link in self.collection_links if link.collection.ignored == True) > 0
@property
def ignored_any(self) -> bool:

Loading…
Cancel
Save