From: Roland Häder Date: Tue, 25 Jul 2023 18:29:21 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0aa9f1949b100a06dd8070405e9f774e450c5880;p=fba.git Continued: - let also find instances by origin - added target and title attributes --- 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 %}