From b15cdaed9a22cc8436a376ff3e4b879e90960111 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Thu, 18 Aug 2022 00:31:25 +0000 Subject: [PATCH] Remove "Old Variety" recommendations - will be replaced with adaptive recommendations --- server/app.py | 17 ----------------- server/templates/macros.htm | 1 - 2 files changed, 18 deletions(-) diff --git a/server/app.py b/server/app.py index 05096a8..5e16232 100644 --- a/server/app.py +++ b/server/app.py @@ -374,23 +374,6 @@ def show_media_thumb(media_id: int): ) -@flask_app.route("/recommendations/simple/variety") -def recommend_variety(): - def gen_list(): - l = [m for m in orm.select(m for m in MediaElement if not (m.watched or m.ignored)).order_by(MediaElement.release_date) if m.can_considered] - return l - return render_template( - "recommendations_simple.htm", - mode_name="Variety", - media_list=generate_preference_list( - base=PreferenceScore(), - object_gen=gen_list, - score_adapt=1, - limit=5, - ) - ) - - @flask_app.route("/api/refresh/collections", methods=["POST"]) def refresh_collections(): collections: List[MediaCollection] = orm.select(c for c in MediaCollection if c.keep_updated) diff --git a/server/templates/macros.htm b/server/templates/macros.htm index 8db2e50..b5e9c2a 100644 --- a/server/templates/macros.htm +++ b/server/templates/macros.htm @@ -70,7 +70,6 @@ "All Collections": "/collection", "Pinned Collections": "/collection/pinned", "Collections To Watch": "/collection/to_watch", - "Show Old Variety": "/recommendations/simple/variety", "Stats": "/stats", "Tags": "/tag", "Add Media": "/media/extract",