1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

repo monitor (#5265)

Co-authored-by: lian <lian@seafile.com>
This commit is contained in:
lian
2023-01-16 17:56:05 +08:00
committed by GitHub
parent 1f25cf459c
commit 00b1007cae
11 changed files with 297 additions and 24 deletions

View File

@@ -14,9 +14,8 @@ from seahub.api2.throttling import UserRateThrottle
from seahub.notifications.models import UserNotification
from seahub.notifications.models import get_cache_key_of_unseen_notifications
from seahub.notifications.views import add_notice_from_info
from seahub.notifications.utils import update_notice_detail
from seahub.api2.utils import api_error, to_python_boolean
from seahub.api2.utils import api_error
from seahub.utils.timeutils import datetime_to_isoformat_timestr
logger = logging.getLogger(__name__)
@@ -117,7 +116,6 @@ class NotificationsView(APIView):
return Response({'success': True})
class NotificationView(APIView):
authentication_classes = (TokenAuthentication, SessionAuthentication)