From f4c8094ad8359af079e74c40a44f3f258f30e482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 16 Mar 2021 11:27:31 +0100 Subject: [PATCH] fix(praesenzlehre): dont get stuck on digit separators like 1,200 --- systems/makanek/configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/makanek/configuration.nix b/systems/makanek/configuration.nix index bc09e9f..58d049c 100644 --- a/systems/makanek/configuration.nix +++ b/systems/makanek/configuration.nix @@ -35,7 +35,7 @@ in count="$(get_count)" - new_count="$(curl -sSL https://praesenzlehre-berlin.org/ | pup '.dk-speakout-signature-count span text{}')" + new_count="$(curl -sSL https://praesenzlehre-berlin.org/ | pup '.dk-speakout-signature-count span text{}' | tr -dc 0-9)" if [ "$new_count" -gt "$count" ]; then diff="$(echo "$new_count - $count" | bc)"