1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

Update notifications.py

This commit is contained in:
r350178982
2024-11-27 17:22:30 +08:00
committed by 孙永强
parent ef77d90280
commit 7d1e9e11ea

View File

@@ -410,12 +410,6 @@ class AllNotificationsView(APIView):
"""
username = request.user.username
# unseen_notices = UserNotification.objects.get_user_notifications(username,
# seen=False)
# for notice in unseen_notices:
# notice.seen = True
# notice.save()
try:
UserNotification.objects.get_user_notifications(username, seen=False).update(seen=True)
SeadocNotification.objects.filter(username=username, seen=False).update(seen=True)