]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 25 Jul 2023 18:29:21 +0000 (20:29 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 25 Jul 2023 18:52:54 +0000 (20:52 +0200)
- let also find instances by origin
- added target and title attributes

daemon.py
templates/widgets/links.html

index aaa8d0ca94ce70ae2c0efb4ebb92db8d9c3af0d6..4ae10a49e81fbb6080969f558790ed4878a8876e 100755 (executable)
--- 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 \
index 4497cd1fde856239e77a1d7a77fa12a33c0f07be..a8e69bc28a52513983d25182a584a58fff477634 100644 (file)
@@ -2,7 +2,8 @@
     [<a class="listlink" href="top?mode=domain&amp;value={{domain}}" title="Search {{domain}}">D</a>]
     [<a class="listlink" href="top?mode=reverse&amp;value={{domain}}" title="Reverse search {{domain}}">R</a>]
     [<a class="listlink" href="infos?domain={{domain}}" title="Information on domain {{domain}}">I</a>]
-    <a href="https://{{domain}}" rel="nofollow noopener noreferrer">{{domain}}</a>
+    [<a class="listlink" href="list?mode=origin&amp;value={{domain}}&amp;amount=500" title="Instances from origin {{domain}}">O</a>]
+    <a href="https://{{domain}}" target="_blank" rel="nofollow noopener noreferrer" title="Visit website at {{domain}}">{{domain}}</a>
 {% else %}
     -
 {% endif %}