diff --git a/src/download/admin_links.py b/src/download/admin_links.py index 0240557..4344054 100644 --- a/src/download/admin_links.py +++ b/src/download/admin_links.py @@ -125,6 +125,10 @@ def cmd_list(args: argparse.Namespace) -> None: requires_revision_only=args.requires_revision, ) for row in rows: + if args.disabled and row["enabled"]: + continue + if args.banned and not row["banned_at"]: + continue status = "enabled" if row["enabled"] else "disabled" if row["banned_at"]: status = "banned"