Add basic detail routes
This commit is contained in:
parent
16878ee228
commit
d42f9a9ac4
@ -75,6 +75,12 @@ def search():
|
|||||||
results = c.fetchall()
|
results = c.fetchall()
|
||||||
return render_template("result.html", results=results, strings=strings, language="english", categories=settings["categories"])
|
return render_template("result.html", results=results, strings=strings, language="english", categories=settings["categories"])
|
||||||
|
|
||||||
|
@app.route("/details", methods=['GET'])
|
||||||
|
def details():
|
||||||
|
info_hash = request.args["h"]
|
||||||
|
print(info_hash)
|
||||||
|
return render_template("details.html", strings=strings, language="english", categories=settings["categories"])
|
||||||
|
|
||||||
def scrapeAll():
|
def scrapeAll():
|
||||||
TRACKER_URL = "http://tracker.lootbox.cf:6969/"
|
TRACKER_URL = "http://tracker.lootbox.cf:6969/"
|
||||||
statedump = requests.get(TRACKER_URL + "stats" + "?mode=statedump")
|
statedump = requests.get(TRACKER_URL + "stats" + "?mode=statedump")
|
||||||
|
4
static/css/details.css
Normal file
4
static/css/details.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
table, th, td {
|
||||||
|
width: 100%;
|
||||||
|
border: 1px solid white;
|
||||||
|
}
|
11
templates/details.html
Normal file
11
templates/details.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!--
|
||||||
|
vim: ts=2 noexpandtab
|
||||||
|
-->
|
||||||
|
{% extends "index.html" %}
|
||||||
|
{% block title %}{{ super() }} - Results{% endblock%}
|
||||||
|
{% set active_page = "search" %}
|
||||||
|
{% block content %}
|
||||||
|
<link href="{{ url_for("static", filename="css/details.css") }}" rel="stylesheet">
|
||||||
|
<script src="{{ url_for("static", filename="js/main.js") }}"></script>
|
||||||
|
<h1>DETAILS</h1>
|
||||||
|
{% endblock content%}
|
Loading…
Reference in New Issue
Block a user