From 5849af56275900af1ef366274cd92bc08fb17338 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Mon, 30 Oct 2023 08:24:49 +0100 Subject: [PATCH] Select only youtube schedules for reporting --- dispatcher/backend/maint-scripts/report_youtube_api_keys.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dispatcher/backend/maint-scripts/report_youtube_api_keys.py b/dispatcher/backend/maint-scripts/report_youtube_api_keys.py index 28eac9a9..f8d0a71b 100755 --- a/dispatcher/backend/maint-scripts/report_youtube_api_keys.py +++ b/dispatcher/backend/maint-scripts/report_youtube_api_keys.py @@ -40,6 +40,7 @@ def report_youtube_api_keys(session: so.Session, *, display_unknown_secrets=Fals print("Listing schedules") stmt = ( sa.select(dbm.Schedule) + .where(dbm.Schedule.config["task_name"].astext == "youtube") .where(dbm.Schedule.config["flags"]["api-key"].astext.is_not(None)) .order_by(dbm.Schedule.config["flags"]["api-key"].astext) )