Skip to content

Commit

Permalink
Remove 'all' option from searchData, remove compiled byte code python…
Browse files Browse the repository at this point in the history
… files
  • Loading branch information
Braun,Naomi committed Jan 3, 2024
1 parent 71d1890 commit 573c198
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 42 deletions.
Binary file removed project/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file removed project/__pycache__/routes.cpython-39.pyc
Binary file not shown.
Binary file removed project/queries/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file removed project/queries/__pycache__/routes.cpython-39.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion project/queries/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def connect_to_db():
@swag_from('../swagger_docs/getSearchData.yml')
def get_search_data():
searches = [x.lower() for x in request.json['categories']]
if not set(searches).issubset(['all', 'papers', 'organizations', 'authors', 'grants', 'keywords']):
if not set(searches).issubset(['papers', 'organizations', 'authors', 'grants', 'keywords']):
return make_response("Invalid value in search requests", 400)

conn = connect_to_db()
Expand Down
41 changes: 0 additions & 41 deletions project/swagger_docs/authorOverlap.yml

This file was deleted.

Binary file not shown.
Binary file removed tests/unit/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file not shown.

0 comments on commit 573c198

Please sign in to comment.