mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-17 15:22:10 +00:00
:)
This commit is contained in:
@@ -95,9 +95,10 @@ class Librarian(object):
|
|||||||
if item["UUID"]:
|
if item["UUID"]:
|
||||||
print (item["UUID"])
|
print (item["UUID"])
|
||||||
uuid_found = True
|
uuid_found = True
|
||||||
|
self.last_search = item
|
||||||
if uuid_found:
|
if uuid_found:
|
||||||
return self.last_search
|
return self.last_search
|
||||||
self.search_crossref(query=query, uuid=uuid)
|
#self.search_crossref(query=query, uuid=uuid)
|
||||||
|
|
||||||
#example not exists
|
#example not exists
|
||||||
#sample_non_existing_page_url = "https://sci-hub.se/10.4324/9781003006237"
|
#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)
|
||||||
app.logger.info(record["query"])
|
app.logger.info(record["query"])
|
||||||
app.logger.info(record["UUID"])
|
app.logger.info(record["UUID"])
|
||||||
|
|
||||||
cl = Librarian()
|
cl = Librarian()
|
||||||
|
cl.answer_query(record["query"], record["UUID"])
|
||||||
answer_data = cl.last_search
|
answer_data = cl.last_search
|
||||||
return_data = (
|
return_data = (
|
||||||
jsonify(isError=False, message="Success", statusCode=200, data=answer_data),
|
jsonify(isError=False, message="Success", statusCode=200, data=answer_data),
|
||||||
|
|||||||
Reference in New Issue
Block a user