Skip to content

Commit

Permalink
default for db_key for adding prefix to third query of myads should b…
Browse files Browse the repository at this point in the history
…e None
  • Loading branch information
golnazads committed Nov 8, 2019
1 parent 926d280 commit 30af997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tugboat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def translate_myads_queries(self, args):
if start_year and date_start and date_end:
authors = self.classic_field_to_array(authors_str)
author_query = ' OR '.join(['author:' + x for x in authors])
arxiv_addition = 'bibstem:arxiv ' if args.get('db_key', 'PRE') == 'PRE' else ''
arxiv_addition = 'bibstem:arxiv ' if args.get('db_key', None) == 'PRE' else ''
weekly_authors_query = '{arxiv_addition}{author_query} entdate:["{date_start}:00:00" TO {date_end}] pubdate:[{start_year}-00 TO *]'
weekly_authors_query = weekly_authors_query.format(arxiv_addition=arxiv_addition,
author_query=author_query,
Expand Down

0 comments on commit 30af997

Please sign in to comment.