]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 22 Jun 2023 20:41:30 +0000 (22:41 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 22 Jun 2023 20:41:30 +0000 (22:41 +0200)
- also include Friendica

api.py

diff --git a/api.py b/api.py
index d7d104e54583fdcd94b3ec9c91f9c6e508ad4142..d08cc4427754c9595f791972222d04d1192d9d76 100644 (file)
--- a/api.py
+++ b/api.py
@@ -74,7 +74,7 @@ def api_scoreboard(mode: str, amount: int):
     elif mode == "obfucator":
         database.cursor.execute("SELECT software, COUNT(domain) AS cnt FROM instances WHERE has_obfucation = 1 GROUP BY software ORDER BY cnt DESC LIMIT ?", [amount])
     elif mode == "obfucation":
-        database.cursor.execute("SELECT has_obfucation, COUNT(domain) AS cnt FROM instances WHERE software IN ('pleroma', 'mastodon') GROUP BY has_obfucation ORDER BY cnt DESC LIMIT ?", [amount])
+        database.cursor.execute("SELECT has_obfucation, COUNT(domain) AS cnt FROM instances WHERE software IN ('pleroma', 'mastodon', 'friendica') GROUP BY has_obfucation ORDER BY cnt DESC LIMIT ?", [amount])
     else:
         raise HTTPException(status_code=400, detail="No filter specified")