From 4c0b1116207ff78221c9aa3b1ee75a5ed8595f8e Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 8 Oct 2021 14:37:25 +0200 Subject: [PATCH] models: Renamed _uris to uris --- server/entertainment_decider/models.py | 6 +++--- server/templates/collection_element.htm | 2 +- server/templates/media_element.htm | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/entertainment_decider/models.py b/server/entertainment_decider/models.py index 22e903d..5930e56 100644 --- a/server/entertainment_decider/models.py +++ b/server/entertainment_decider/models.py @@ -126,7 +126,7 @@ class MediaElement(db.Entity): length: int = orm.Optional(int) tag_list : Iterable[Tag] = orm.Set(lambda: Tag) - _uris: Iterable[MediaUriMapping] = orm.Set(lambda: MediaUriMapping) + uris: Iterable[MediaUriMapping] = orm.Set(lambda: MediaUriMapping) collection_links: Iterable[MediaCollectionLink] = orm.Set(lambda: MediaCollectionLink) @property @@ -173,7 +173,7 @@ class MediaElement(db.Entity): other.ignored = True if self.progress >= 0 and other.progress <= 0: other.progress = self.progress - for uri_map in self._uris: + for uri_map in self.uris: uri_map.element = other for link in self.collection_links: if not MediaCollectionLink.get(collection=link.collection, element=other): @@ -228,7 +228,7 @@ class MediaCollection(db.Entity): watch_in_order: bool = orm.Required(bool, default=True) tag_list: Iterable[Tag] = orm.Set(lambda: Tag) - _uris: Iterable[CollectionUriMapping] = orm.Set(lambda: CollectionUriMapping) + uris: Iterable[CollectionUriMapping] = orm.Set(lambda: CollectionUriMapping) media_links: Iterable[MediaCollectionLink] = orm.Set(MediaCollectionLink) @property diff --git a/server/templates/collection_element.htm b/server/templates/collection_element.htm index c8167c2..3770ee8 100644 --- a/server/templates/collection_element.htm +++ b/server/templates/collection_element.htm @@ -55,7 +55,7 @@

Links

diff --git a/server/templates/media_element.htm b/server/templates/media_element.htm index bb2182b..a391be3 100644 --- a/server/templates/media_element.htm +++ b/server/templates/media_element.htm @@ -37,7 +37,7 @@

Links