Skip to content

Commit

Permalink
style: add logging to satisfy linter #259
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Nov 22, 2021
1 parent 94af185 commit f7d9829
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions datagateway_api/src/resources/search_api_endpoints.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import logging

from flask_restful import Resource

from datagateway_api.src.common.helpers import get_filters_from_query_string

log = logging.getLogger()


# TODO - Might need kwargs on get_search_endpoint(), get_single_endpoint(),
# get_number_count_endpoint(), get_files_endpoint(), get_number_count_files_endpoint()
Expand All @@ -14,6 +18,7 @@ def get_search_endpoint(name):
class Endpoint(Resource):
def get(self):
filters = get_filters_from_query_string("search_api")
log.debug("Filters: %s", filters)
"""
TODO - Need to return similar to
return (
Expand Down Expand Up @@ -42,6 +47,7 @@ def get_single_endpoint(name):
class EndpointWithID(Resource):
def get(self, pid):
filters = get_filters_from_query_string("search_api")
log.debug("Filters: %s", filters)
# TODO - Add return
pass

Expand All @@ -60,6 +66,7 @@ class CountEndpoint(Resource):
def get(self):
# Only WHERE included on count endpoints
filters = get_filters_from_query_string("search_api")
log.debug("Filters: %s", filters)
# TODO - Add return
pass

Expand All @@ -77,6 +84,7 @@ def get_files_endpoint(name):
class FilesEndpoint(Resource):
def get(self, pid):
filters = get_filters_from_query_string("search_api")
log.debug("Filters: %s", filters)
# TODO - Add return
pass

Expand All @@ -95,6 +103,7 @@ class CountFilesEndpoint(Resource):
def get(self, pid):
# Only WHERE included on count endpoints
filters = get_filters_from_query_string("search_api")
log.debug("Filters: %s", filters)
# TODO - Add return
pass

Expand Down

0 comments on commit f7d9829

Please sign in to comment.