-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from cul-it/hotfix/0.1.1
Hotfix/0.1.1
- Loading branch information
Showing
19 changed files
with
183 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
amazon-kclpy==1.4.4 | ||
arxiv-base==0.5.1 | ||
arxiv-base==0.6.1 | ||
boto==2.48.0 | ||
boto3==1.6.6 | ||
botocore==1.9.6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
amazon-kclpy==1.4.4 | ||
arxiv-base==0.5.1 | ||
arxiv-base==0.6.1 | ||
boto==2.48.0 | ||
boto3==1.6.6 | ||
botocore==1.9.6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,11 +84,18 @@ def search(request_params: dict) -> Response: | |
# Fall back to form-based search. | ||
form = SimpleSearchForm(request_params) | ||
|
||
# Temporary workaround to support classic help search | ||
if form.query.data and form.searchtype.data == 'help': | ||
return {}, status.HTTP_301_MOVED_PERMANENTLY,\ | ||
{'Location': 'https://arxiv.org/help/search?method=and' | ||
f'&format=builtin-short&sort=score&words={form.query.data}'} | ||
if form.query.data: | ||
# Temporary workaround to support classic help search | ||
if form.searchtype.data == 'help': | ||
return {}, status.HTTP_301_MOVED_PERMANENTLY,\ | ||
{'Location': 'https://arxiv.org/help/search?method=and' | ||
f'&format=builtin-short&sort=score&words={form.query.data}'} | ||
|
||
# Support classic "expeirmental" search | ||
elif form.searchtype.data == 'full_text': | ||
return {}, status.HTTP_301_MOVED_PERMANENTLY,\ | ||
{'Location': 'http://search.arxiv.org:8081/' | ||
f'?in=&query={form.query.data}'} | ||
|
||
q: Optional[Query] | ||
if form.validate(): | ||
|
@@ -120,6 +127,9 @@ def search(request_params: dict) -> Response: | |
"search again. If this problem persists, please report it to " | ||
"[email protected]." | ||
) from e | ||
except Exception as e: | ||
print(e) | ||
raise | ||
else: | ||
logger.debug('form is invalid: %s', str(form.errors)) | ||
if 'order' in form.errors or 'size' in form.errors: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.