From 000e4cc26ff60670fe8700a43562378a0d459254 Mon Sep 17 00:00:00 2001 From: xishandong Date: Mon, 17 Jul 2023 17:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=86=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../post/66-Snipaste_2023-07-17_15-39-14.png | Bin 0 -> 18863 bytes .../views/__pycache__/comment.cpython-39.pyc | Bin 2286 -> 2277 bytes .../views/__pycache__/post.cpython-39.pyc | Bin 3981 -> 3960 bytes .../views/__pycache__/user.cpython-39.pyc | Bin 6167 -> 6133 bytes Server01/views/comment.py | 2 +- Server01/views/post.py | 8 ++++---- Server01/views/user.py | 12 ++++++------ webServer/__pycache__/settings.cpython-39.pyc | Bin 2644 -> 2644 bytes 8 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 Server01/static/img/post/66-Snipaste_2023-07-17_15-39-14.png diff --git a/Server01/static/img/post/66-Snipaste_2023-07-17_15-39-14.png b/Server01/static/img/post/66-Snipaste_2023-07-17_15-39-14.png new file mode 100644 index 0000000000000000000000000000000000000000..aa1e1159a8e3073c50812654713d2162dc2fe67b GIT binary patch literal 18863 zcmXtAcQn=i|G#8hBd&c#xY@elqHMCWxd?siS=lRlgv@JYbM5R+l)bOLLpC8~XYb#; z?>WCeD#tmw?_TfM^Z9(NXW<%Z3J(b%5rROVhl;OcksuHj5%9GE7#sNgY!Lqr_=CXl zmA(rIMDF_U7uJ#$qX+O!GFLf0S1kuCS9eoqOOTfRJ4aI&S4%^hkwp-Q38W}1rR{;< zZLy9wQ25OH=xX3cDys&Q_gQ(>?Y*S+dCNYV{*$`zB464_8T3K8V_US?IC4;8adUa? z#b#QDRlghb8YQUDc&GAo=BnMS?exJ--Q64GQ}TabeVkUeH&^n{+q|&3P1}i~f`M>A zpfFO1Snx}15RNphC5lg8s1Qx2v|U-}i^YUTA2sRTY+HyC} zo91oPd>S;*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!T diff --git a/Server01/views/comment.py b/Server01/views/comment.py index 9decc82..e9e6080 100644 --- a/Server01/views/comment.py +++ b/Server01/views/comment.py @@ -49,7 +49,7 @@ def load_reply(request): offset = data['offset'] comment = Comment.objects.filter(id=id).first() if comment: - replies = comment.replies.all() + replies = comment.replies filter_replies = filter_querySet(replies, offset, limit=5) data = [ { diff --git a/Server01/views/post.py b/Server01/views/post.py index 1f9cd60..414df30 100644 --- a/Server01/views/post.py +++ b/Server01/views/post.py @@ -57,9 +57,9 @@ def get_post_detail(request): 'avatar': post.user.avatar }, 'createTime': convert_to_timezone(post.created_at, TIME_ZONE), - 'likeCount': post.favoritePosts.all().count(), - 'collectCount': post.collectedPosts.all().count(), - 'commentCount': post.comments.all().count(), + 'likeCount': post.favoritePosts.count(), + 'collectCount': post.collectedPosts.count(), + 'commentCount': post.comments.count(), 'content': post.content } return JsonResponse({'info': info}, status=200) @@ -78,7 +78,7 @@ def query_post_index(request): Q(content__icontains=query) ) else: - posts = models.Post.objects.all() + posts = models.Post.objects posts = filter_querySet(posts, offset, limit=10) if posts: return JsonResponse({'info': list(combine_index_post(posts))}, status=200) diff --git a/Server01/views/user.py b/Server01/views/user.py index 9db7730..7832cdf 100644 --- a/Server01/views/user.py +++ b/Server01/views/user.py @@ -77,7 +77,7 @@ def query_user_index_post(request): user = models.User.objects.filter(id=user_id).first() if user and types in type_mapping: field_name = type_mapping[types] - postObj = getattr(user, field_name).all() + postObj = getattr(user, field_name) posts = filter_querySet(postObj, offset, limit=10) if posts: return JsonResponse({'info': list(combine_index_post(posts))}, status=200) @@ -183,19 +183,19 @@ def user_control_index(request, payload): user = models.User.objects.filter(id=user_id).first() if user: if types == 'posts': - user_data = user.posts.all() + user_data = user.posts info = get_user_post_info(user_data, offset) elif types == 'collected': - user_data = user.collected.all() + user_data = user.collected info = get_user_post_info(user_data, offset) elif types == 'favorites': - user_data = user.favorites.all() + user_data = user.favorites info = get_user_post_info(user_data, offset) elif types == 'fans': - user_data = user.beFocusOn.all() + user_data = user.beFocusOn info = get_user_info(user_data, offset) elif types == 'follow': - user_data = user.following.all() + user_data = user.following info = get_user_info(user_data, offset) else: return JsonResponse({'error': '错误的操作'}, status=404) diff --git a/webServer/__pycache__/settings.cpython-39.pyc b/webServer/__pycache__/settings.cpython-39.pyc index fb35fda3fe441f096367f9241a22af8769762919..76016106c9b6c2367fa9ac1aa673f188347c43cc 100644 GIT binary patch delta 20 acmca2az%tYk(ZZ?0SFv8wr=G1