Skip to content

Commit 0df2879

Browse files
paprarunkannawadi
authored andcommitted
Pass include_last_year to _construct_url from search_pubs
Fixes #420 🌳
1 parent 76e6f6d commit 0df2879

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scholarly/_scholarly.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def search_pubs(self,
152152
"""
153153
url = self._construct_url(_PUBSEARCH.format(requests.utils.quote(query)), patents=patents,
154154
citations=citations, year_low=year_low, year_high=year_high,
155-
sort_by=sort_by, start_index=start_index)
155+
sort_by=sort_by, include_last_year=include_last_year, start_index=start_index)
156156
return self.__nav.search_publications(url)
157157

158158
def search_citedby(self, publication_id: int, **kwargs):
@@ -620,4 +620,4 @@ def save_journals_csv(self, filename, category="English", subcategory=None, incl
620620
except IOError:
621621
self.logger.error("Error writing journals as %s", filename)
622622
finally:
623-
return journals
623+
return journals

0 commit comments

Comments
 (0)