Skip to content

Commit

Permalink
Adjust shell to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
tijmenbaarda committed Jan 3, 2024
1 parent 1388d36 commit b174b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edpop_explorer/edpopxshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def do_next(self, args) -> None:
self.perror('All records have been shown')
else:
if self.reader.number_fetched - self.shown < self.RECORDS_PER_PAGE:
self.reader.fetch_next()
self.reader.fetch()
self.shown += self._show_records(self.reader.records,
self.shown,
self.RECORDS_PER_PAGE)
Expand Down Expand Up @@ -195,7 +195,7 @@ def do_kb(self, args) -> None:
'Koninklijke Bibliotheek'
self._query(KBReader, args)

def _show_records(self, records: List[Record],
def _show_records(self, records: List[Optional[Record]],
start: int,
limit=math.inf) -> int:
"""Show the records from start, with limit as the maximum number
Expand Down

0 comments on commit b174b8b

Please sign in to comment.