Skip to content

Commit

Permalink
Merge pull request #66 from golnazads/master
Browse files Browse the repository at this point in the history
put back checking for arxiv db selection with physics and astronomy
  • Loading branch information
golnazads committed Mar 28, 2019
2 parents f73407d + b1f9a0f commit 310b664
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tugboat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,13 +1010,13 @@ def translate_arxiv_sel(self, args):
value = args.pop('arxiv_sel', None)
if value is None:
return
# 3/19/2019 remove the warning, as per Alberto.
# # consider arXiv only if other dbs are not selected
# filter = urllib.unquote(''.join(self.translation.filter))
# if 'database:"astronomy"' in filter or 'database:"physics"' in filter:
# self.translation.warning_message.append(
# urllib.quote('when the astronomy or physics databases are selected, the arXiv selection is ignored'))
# return
# consider arXiv only if other dbs are not selected
filter = urllib.unquote(''.join(self.translation.filter))
if 'database:"astronomy"' in filter or 'database:"physics"' in filter:
# 3/19/2019 remove the warning, as per Alberto.
# self.translation.warning_message.append(
# urllib.quote('when the astronomy or physics databases are selected, the arXiv selection is ignored'))
return
if self.validate_arxiv_sel(value):
# if all entries are valid include them, oring them
entry = value.split(',')
Expand Down

0 comments on commit 310b664

Please sign in to comment.