Skip to content

Commit

Permalink
More dev review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehelman committed Apr 29, 2024
1 parent a8e2048 commit 2207221
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
],
"rules": {
// Disabled default rules
"no-debugger": "off",
"no-plusplus": "off",
"no-continue": "off",
"react/jsx-props-no-spreading": "off",
Expand Down
6 changes: 3 additions & 3 deletions dear_petition/petition/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ def combine_batches(self, request):

if not batch_ids:
return Response(
"No client uploads have been.", status=status.HTTP_400_BAD_REQUEST
"No client uploads have been uploaded.", status=status.HTTP_400_BAD_REQUEST
)
if not batch_ids:
if not label:
return Response(
"No client uploads have been included.", status=status.HTTP_400_BAD_REQUEST
"A new label needs to be included for the client.", status=status.HTTP_400_BAD_REQUEST
)

new_batch = combine_batches(batch_ids, label, user_id)
Expand Down

0 comments on commit 2207221

Please sign in to comment.