From 8af39dadb927c5283fc1b7313d7d4b6e24c8d358 Mon Sep 17 00:00:00 2001 From: CapooL <2053217188@qq.com> Date: Thu, 19 Oct 2023 15:58:39 +0800 Subject: [PATCH] fix(user): delete listened MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit US0201去除播放量相关 Closes # 314 --- hinghwa-dict-backend/user/view/manage.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/hinghwa-dict-backend/user/view/manage.py b/hinghwa-dict-backend/user/view/manage.py index 4655db05..6bb35087 100644 --- a/hinghwa-dict-backend/user/view/manage.py +++ b/hinghwa-dict-backend/user/view/manage.py @@ -59,11 +59,6 @@ def get(self, request, id): "word_uploaded": user.contribute_words.count(), "article_views": user.articles.aggregate(Sum("views"))["views__sum"] or 0, - # TODO 去除播放量相关(需要确认前端全部删除) - "listened": user.contribute_pronunciation.aggregate(Sum("views")).get( - "views__sum" - ) - or 0, }, }