From 3002cb4e97d37b1315c62a689d22d239655cf381 Mon Sep 17 00:00:00 2001 From: UpstreamData Date: Mon, 28 Feb 2022 16:28:40 -0700 Subject: [PATCH] added basic addition of miners to the list and improved some functionality of the web tool --- tools/web_monitor/app.py | 4 ++-- tools/web_monitor/templates/scan.html | 28 +++++++++++++++++++++------ 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/tools/web_monitor/app.py b/tools/web_monitor/app.py index 603f8cc9..4c11ca3c 100644 --- a/tools/web_monitor/app.py +++ b/tools/web_monitor/app.py @@ -26,8 +26,8 @@ def scan(request: Request): @app.post("/scan/add_miners") -def add_miners_scan(request: Request): - print(request) +async def add_miners_scan(request: Request): + print(await request.json()) return scan diff --git a/tools/web_monitor/templates/scan.html b/tools/web_monitor/templates/scan.html index f5d24cce..f2648943 100644 --- a/tools/web_monitor/templates/scan.html +++ b/tools/web_monitor/templates/scan.html @@ -12,7 +12,7 @@
- +
@@ -53,6 +53,9 @@ }); {% endblock content %}