fix list download admin
This commit is contained in:
@@ -125,6 +125,10 @@ def cmd_list(args: argparse.Namespace) -> None:
|
|||||||
requires_revision_only=args.requires_revision,
|
requires_revision_only=args.requires_revision,
|
||||||
)
|
)
|
||||||
for row in rows:
|
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"
|
status = "enabled" if row["enabled"] else "disabled"
|
||||||
if row["banned_at"]:
|
if row["banned_at"]:
|
||||||
status = "banned"
|
status = "banned"
|
||||||
|
|||||||
Reference in New Issue
Block a user