From 113931d0881d340d872235f9c3f7b3cca9b9fc30 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Mon, 23 Mar 2026 14:26:56 +0100 Subject: [PATCH] o7 lr --- configuration.nix | 2 +- system-modules/calendar/lr.nix | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index f78d365..b03a587 100644 --- a/configuration.nix +++ b/configuration.nix @@ -57,7 +57,7 @@ ./system-modules/nx2site/paperless.nix ./system-modules/calendar/publish.nix ./system-modules/calendar/lec.nix - ./system-modules/calendar/lr.nix + # ./system-modules/calendar/lr.nix ./system-modules/calendar/dicos.nix ] else [ ]); environment.systemPackages = import ./system-modules/base-packages.nix pkgs; diff --git a/system-modules/calendar/lr.nix b/system-modules/calendar/lr.nix index 1644817..003a3ea 100644 --- a/system-modules/calendar/lr.nix +++ b/system-modules/calendar/lr.nix @@ -23,7 +23,8 @@ from ics import Calendar import requests def filter_events(events): - return [event for event in events if ("LR" in event.name)] + return [event for event in events if ("WT" in event.name)] + # return [event for event in events if ("LR" in event.name)] # return [event for event in events if ("LR" in event.name) or ("TBD" in event.name)] def fetch_and_save_ical_events(ical_urls, save_path): @@ -62,7 +63,7 @@ def fetch_and_save_ical_events(ical_urls, save_path): if __name__ == "__main__": # Replace with your iCal URL and target file path ICAL_URLS = [ - "https://zlypher.github.io/lol-events/cal/league-of-legends-nlc.ical", + # "https://zlypher.github.io/lol-events/cal/league-of-legends-nlc.ical", "https://zlypher.github.io/lol-events/cal/league-of-legends-emea-masters.ical" ] SAVE_PATH = "${config.services.nginx.virtualHosts."${hyper.domain}".root}/lr.ics"