Skip to content

Commit

Permalink
Implemented PrefixesCreateApi
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   biocompute/apis.py
	modified:   config/fixtures/local_data.json
	modified:   config/services.py
	modified:   config/urls.py
	modified:   prefix/apis.py
	modified:   prefix/services.py
	modified:   prefix/urls.py
	modified:   search/apis.py
	modified:   tests/test_views/test_api_auth_remove.py
	modified:   tests/test_views/test_api_objects_drafts_create.py
	new file:   tests/test_views/test_api_prefixes_create.py
  • Loading branch information
HadleyKing committed Mar 19, 2024
1 parent 301693a commit 0361299
Show file tree
Hide file tree
Showing 11 changed files with 718 additions and 5,975 deletions.
3 changes: 0 additions & 3 deletions biocompute/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def post(self, request) -> Response:
accepted_requests = True

except Exception as err:
print(err)
response_data.append(response_constructor(
identifier=bco['object_id'].value,
status = "SERVER ERROR",
Expand All @@ -117,8 +116,6 @@ def post(self, request) -> Response:
))
rejected_requests = True

print(accepted_requests, rejected_requests )

if accepted_requests is False and rejected_requests == True:
return Response(
status=status.HTTP_400_BAD_REQUEST,
Expand Down
Loading

0 comments on commit 0361299

Please sign in to comment.