From 5d083a769f6aca0de16e5ff7a48f445af84f5fca Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Tue, 3 Sep 2024 13:21:11 +0100 Subject: [PATCH] Update views.py --- atlasserver/forcephot/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atlasserver/forcephot/views.py b/atlasserver/forcephot/views.py index 22ce079..6a4c263 100644 --- a/atlasserver/forcephot/views.py +++ b/atlasserver/forcephot/views.py @@ -215,7 +215,7 @@ def perform_create(self, serializer) -> None: if self.request.user and self.request.user.is_authenticated: usertaskcount = Task.objects.filter(user_id=self.request.user.pk, request_type="IMGZIP").count() if usertaskcount >= maximgziptasks: - msg = f"You have too many IMGZIP tasks ({usertaskcount} > {maximgziptasks}). Issue delete requests to remove some." + msg = f"You have too many IMGZIP tasks ({usertaskcount} >= {maximgziptasks}). Issue delete requests to remove some." raise ValidationError(msg) extra_fields: dict[str, Any] = { @@ -359,7 +359,7 @@ def get(self, request, pk): if self.request.user and self.request.user.is_authenticated: usertaskcount = Task.objects.filter(user_id=self.request.user.pk, request_type="IMGZIP").count() if usertaskcount >= maximgziptasks: - msg = f"You have too many IMGZIP tasks ({usertaskcount} > {maximgziptasks}). Delete some before making new requests." + msg = f"You have too many IMGZIP tasks ({usertaskcount} >= {maximgziptasks}). Delete some before making new requests." return JsonResponse({"error": msg}, status=429) if not parent_task.error_msg and parent_task.finishtimestamp: