Remove "Old Variety" recommendations

- will be replaced with adaptive recommendations
master
Felix Stupp 2 years ago
parent 85b748f5e6
commit b15cdaed9a
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -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)

@ -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",

Loading…
Cancel
Save