This commit is contained in:
2024-04-01 19:00:32 +02:00
parent 79d7888fa5
commit c11bf7afc9
+3 -3
View File
@@ -95,9 +95,10 @@ class Librarian(object):
if item["UUID"]:
print (item["UUID"])
uuid_found = True
self.last_search = item
if uuid_found:
return self.last_search
self.search_crossref(query=query, uuid=uuid)
#self.search_crossref(query=query, uuid=uuid)
#example not exists
#sample_non_existing_page_url = "https://sci-hub.se/10.4324/9781003006237"
@@ -137,9 +138,8 @@ def query_database():
app.logger.info(record)
app.logger.info(record["query"])
app.logger.info(record["UUID"])
cl = Librarian()
cl.answer_query(record["query"], record["UUID"])
answer_data = cl.last_search
return_data = (
jsonify(isError=False, message="Success", statusCode=200, data=answer_data),