From f8497f55380e54f996ccb84719b5edddc7ec9e81 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Thu, 21 Nov 2024 22:33:47 +0100 Subject: [PATCH] health reminder syntax fix 2 --- system-modules/health_reminder.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/system-modules/health_reminder.nix b/system-modules/health_reminder.nix index 7e02ee2..a5e006c 100755 --- a/system-modules/health_reminder.nix +++ b/system-modules/health_reminder.nix @@ -12,7 +12,9 @@ lib.mkIf (host != "NxACE") }; systemd.user.services."health_reminder" = let - hm = pkgs.writers.writePython3Bin "health_reminder" {} /*python*/ '' + hm = pkgs.writers.writePython3Bin "health_reminder" { + flakeIgnore = [ "E302" "E305" "E226" "E501" ]; + } /*python*/ '' import random import re @@ -24,10 +26,10 @@ lib.mkIf (host != "NxACE") def __str__(self): try: - choice = random.choice(self.options) + choice = random.choice(self.options) except IndexError: choice = "" - + action = re.sub("%o", choice, self.action) return action