From bae0415a245af834cf1e53c3ec1e60ac1346b6fb Mon Sep 17 00:00:00 2001 From: ducklet Date: Wed, 4 Aug 2021 01:04:13 +0200 Subject: [PATCH] fix up movies index route [wip] --- unwind-ui/src/components/MovieList.vue | 20 ++++- unwind-ui/src/utils.ts | 15 ++++ unwind/db.py | 120 +++++++++++++++++++++++++ unwind/web.py | 63 +++++++++++-- 4 files changed, 210 insertions(+), 8 deletions(-) diff --git a/unwind-ui/src/components/MovieList.vue b/unwind-ui/src/components/MovieList.vue index 20bf88f..9903594 100644 --- a/unwind-ui/src/components/MovieList.vue +++ b/unwind-ui/src/components/MovieList.vue @@ -29,8 +29,8 @@ {{ item.media_type }} - {{ imdb_rating(item.imdb_score) }} - {{ imdb_rating(item.user_score) }} + {{ imdb_rating(item.imdb_score) }} + {{ avg_imdb_rating(item.user_scores) }} {{ duration(item.runtime) }} @@ -44,6 +44,20 @@