From 0aa9f1949b100a06dd8070405e9f774e450c5880 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 25 Jul 2023 20:29:21 +0200 Subject: [PATCH] Continued: - let also find instances by origin - added target and title attributes --- daemon.py | 2 +- templates/widgets/links.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index aaa8d0c..4ae10a4 100755 --- a/daemon.py +++ b/daemon.py @@ -113,7 +113,7 @@ def api_list(request: Request, mode: str, value: str, amount: int): elif amount > config.get("api_limit"): raise HTTPException(status_code=500, detail=f"amount={amount} is to big") - if mode in ("detection_mode", "software", "command"): + if mode in ("detection_mode", "software", "command", "origin"): database.cursor.execute( f"SELECT domain, origin, software, detection_mode, command, total_peers, total_blocks, first_seen, last_updated \ FROM instances \ diff --git a/templates/widgets/links.html b/templates/widgets/links.html index 4497cd1..a8e69bc 100644 --- a/templates/widgets/links.html +++ b/templates/widgets/links.html @@ -2,7 +2,8 @@ [D] [R] [I] - {{domain}} + [O] + {{domain}} {% else %} - {% endif %} -- 2.39.5