Skip to content

Commit

Permalink
fixes volume lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Jun 9, 2024
1 parent a67fefc commit 4f42d36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ceurws/wikidatasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(
self.wd = Wikidata(debug=debug)
self.sqldb = SQLDB(CEURWS.CACHE_FILE,check_same_thread=False)
self.procRecords = None
self.procsByVolnumber = None
self.dblpEndpoint = DblpEndpoint(endpoint=dblp_endpoint_url)
self.wikidata_endpoint: Endpoint | None = None

Expand Down Expand Up @@ -294,6 +295,7 @@ def getProceedingsForVolume(self, searchVolnumber: int) -> dict | None:
"""
if self.procRecords is None:
self.loadProceedingsFromCache()
if self.procsByVolnumber is None:
self.procsByVolnumber: dict[int, dict] = {}
if isinstance(self.procRecords, list):
for procRecord in self.procRecords:
Expand Down

0 comments on commit 4f42d36

Please sign in to comment.