From b79db202d26edadc3b1cf6a8dfe5ed10d798445d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 13 Aug 2023 19:13:36 +0200 Subject: [PATCH] Continued: - added --software2 for re-checking instances with `software` given and no `detection_mode` given - also added og:platform to HTML base template --- recheck.sh | 6 +++++- templates/base.html | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/recheck.sh b/recheck.sh index 1475bac..b1627e9 100755 --- a/recheck.sh +++ b/recheck.sh @@ -3,7 +3,7 @@ MODE="" if [ "$1" = "--help" ] then - echo "Usage: $ [file|--software|--nodeinfo|--detection|--no-auto|--timeout]" + echo "Usage: $ [file|--software|--software2|--nodeinfo|--detection|--no-auto|--timeout]" exit 255 elif [ -n "$1" -a -f "$1" ] then @@ -29,6 +29,10 @@ elif [ "$1" = "--timeout" ] then DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE last_error_details LIKE '%Timeout%' ORDER BY last_updated ASC;") MODE="software" +elif [ "$1" = "--software2" ] +then + DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE software IS NOT NULL AND detection_mode IS NULL ORDER BY last_updated ASC;") + MODE="software" else DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE software IS NULL AND nodeinfo_url IS NOT NULL ORDER BY last_updated ASC;") fi diff --git a/templates/base.html b/templates/base.html index eb4ce08..0242696 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,6 +4,8 @@ fedi-block-api - {% block title %}{% endblock %} + + -- 2.39.5