mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 23:09:01 +00:00
Website link list works with elasticsearch
This commit is contained in:
4
app.py
4
app.py
@@ -68,7 +68,6 @@ def website_json_chart(website_id):
|
||||
|
||||
website = db.get_website_by_id(website_id)
|
||||
|
||||
print("FIXME: website_json_chart")
|
||||
if website:
|
||||
stats = searchEngine.get_stats(website_id)
|
||||
stats["base_url"] = website.url
|
||||
@@ -85,7 +84,8 @@ def website_links(website_id):
|
||||
|
||||
if website:
|
||||
print("FIXME: website_links")
|
||||
links = []
|
||||
links = searchEngine.get_link_list(website_id, website.url)
|
||||
print(links)
|
||||
return Response("\n".join(links), mimetype="text/plain")
|
||||
else:
|
||||
abort(404)
|
||||
|
||||
Reference in New Issue
Block a user