Skip to content

Commit

Permalink
fix(user):delete unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
CapooL committed Nov 1, 2023
1 parent 4fec5f5 commit a181d79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 0 additions & 10 deletions hinghwa-dict-backend/relative/models.py

This file was deleted.

5 changes: 5 additions & 0 deletions hinghwa-dict-backend/user/view/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ 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,
},
}

Expand Down

0 comments on commit a181d79

Please sign in to comment.