From 47d823d56fff2c76df38c2e9f9606e170124afec Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 18 Aug 2022 01:02:10 +0000 Subject: [PATCH] Format code --- server/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 4306d85..2d0d91b 100644 --- a/server/app.py +++ b/server/app.py @@ -233,7 +233,11 @@ def dashboard(): episodes_from_pinned_collections: Set[MediaElement] = set() for coll in pinned_collections: next_link = coll.next_episode - if next_link is not None and next_link.element not in episodes_from_pinned_collections and next_link.element.can_considered: + if ( + next_link is not None + and next_link.element not in episodes_from_pinned_collections + and next_link.element.can_considered + ): links_from_pinned_collections.append(next_link) episodes_from_pinned_collections.add(next_link.element) if len(links_from_pinned_collections) >= pinned_limit: