chore: maintenance
This commit is contained in:
@@ -578,7 +578,6 @@ class Api:
|
|||||||
# insert the query into the url url is
|
# insert the query into the url url is
|
||||||
url = self.url.format(query)
|
url = self.url.format(query)
|
||||||
|
|
||||||
log.debug(url)
|
|
||||||
headers = {
|
headers = {
|
||||||
"User-Agent": f"{self.site} SRU Client, <alexander.kirchner@ph-freiburg.de>",
|
"User-Agent": f"{self.site} SRU Client, <alexander.kirchner@ph-freiburg.de>",
|
||||||
"Accept": "application/xml",
|
"Accept": "application/xml",
|
||||||
@@ -595,7 +594,6 @@ class Api:
|
|||||||
def getBooks(self, query_args: Iterable[str]) -> List[BookData]:
|
def getBooks(self, query_args: Iterable[str]) -> List[BookData]:
|
||||||
records: List[Record] = self.get(query_args)
|
records: List[Record] = self.get(query_args)
|
||||||
# Avoid printing on hot paths; rely on logger if needed
|
# Avoid printing on hot paths; rely on logger if needed
|
||||||
log.debug(f"{self.site} found {len(records)} records for args={query_args}")
|
|
||||||
books: List[BookData] = []
|
books: List[BookData] = []
|
||||||
# extract title from query_args if present
|
# extract title from query_args if present
|
||||||
title = None
|
title = None
|
||||||
|
|||||||
Reference in New Issue
Block a user