Skip to content

Commit

Permalink
Select only youtube schedules for reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Oct 30, 2023
1 parent 47c949b commit 5849af5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 5849af5

Please sign in to comment.