Skip to content

Commit

Permalink
accept link sub type as is, do not upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
golnazads committed Nov 13, 2023
1 parent ea60876 commit 6594b8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LOG_STDOUT = True
LOG_STDOUT = False
LOGGING_LEVEL = 'DEBUG'

# This the URL to resolver_service api
Expand Down
4 changes: 2 additions & 2 deletions resolverway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def resolver(bibcode, link_type, url):
if params:
url = "%s?%s" % (url, params)

return LinkRequest(bibcode, link_type.upper(), url=url).process_request()
return LinkRequest(bibcode, link_type, url=url).process_request()


@advertise(scopes=[], rate_limit=[1000, 3600 * 24])
Expand All @@ -326,4 +326,4 @@ def resolver_id(bibcode, link_type, id):
:param id:
:return:
"""
return LinkRequest(bibcode, link_type.upper(), id=id).process_request()
return LinkRequest(bibcode, link_type, id=id).process_request()

0 comments on commit 6594b8c

Please sign in to comment.