Skip to content
Snippets Groups Projects
Commit 25226511 authored by nicolas.ollinger's avatar nicolas.ollinger
Browse files

if if = if

parent 445ec0c9
No related branches found
No related tags found
No related merge requests found
......@@ -41,10 +41,9 @@ class SJR:
def by_ISSN(self, issn, year):
res = self.raw_by_ISSN(issn, year)
if res is None:
if not self.fetched(year):
self.fetch_scimago_year(year)
res = self.raw_by_ISSN(issn, year)
if res is None and not self.fetched(year):
self.fetch_scimago_year(year)
res = self.raw_by_ISSN(issn, year)
return res
def fetched(self, year):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment