Skip to content

Commit

Permalink
优化通知信箱实时更新bug的解决方式
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryLee27501 committed Dec 18, 2024
1 parent b8d1ff6 commit f4fdc97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1815,9 +1815,8 @@ def notifications(request: HttpRequest):
receiver=request.user,
status=Notification.Status.UNDONE).order_by("-start_time")

done_list = notification2Display(done_notifications)
undone_list = notification2Display(undone_notifications)
notes_list = done_list + undone_list
notes_list = notification2Display(
done_notifications) + notification2Display(undone_notifications)

# 新版侧边栏, 顶栏等的呈现,采用 bar_display, 必须放在render前最后一步
bar_display = utils.get_sidebar_and_navbar(request.user,
Expand Down

0 comments on commit f4fdc97

Please sign in to comment.