diff --git a/.vscode/settings.json b/.vscode/settings.json index 99ff928..9fdcac7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,6 +17,7 @@ "CLEANR", "CUDA", "Divs", + "favorited", "flowbite", "indeterminated", "jsonify", diff --git a/app/controllers/sorting.py b/app/controllers/sorting.py index b2665cf..c87b13a 100644 --- a/app/controllers/sorting.py +++ b/app/controllers/sorting.py @@ -5,7 +5,7 @@ from app.controllers import create_pagination def sort_by(query, sort: str): match sort: - case "favored": + case "favorited": query = query.order_by(text("stars_count DESC")) case "upvoted": query = query.order_by(text("score DESC")) diff --git a/app/templates/book/components/header_buttons.html b/app/templates/book/components/header_buttons.html index 0a3af00..65f431a 100644 --- a/app/templates/book/components/header_buttons.html +++ b/app/templates/book/components/header_buttons.html @@ -30,8 +30,8 @@ {% if selected_tab=='my_library' or selected_tab=='favorite_books' or selected_tab=='explore_books'%}
  • - - Most favored + + Most favorited
  • {% endif %}