feat: SRU api allow single string search
This commit is contained in:
@@ -542,7 +542,7 @@ class Api:
|
||||
sr = parse_search_retrieve_response(resp.content)
|
||||
return sr.records
|
||||
|
||||
def getBooks(self, query_args: Iterable[str]) -> List[BookData]:
|
||||
def getBooks(self, query_args: Union[Iterable[str], str]) -> List[BookData]:
|
||||
records: List[Record] = self.get(query_args)
|
||||
# Avoid printing on hot paths; rely on logger if needed
|
||||
books: List[BookData] = []
|
||||
|
||||
Reference in New Issue
Block a user