Skip to content
Snippets Groups Projects
Commit e544a317 authored by Vermaat's avatar Vermaat
Browse files

Fix alignment in admin batch jobs listing

parent 05ad5b87
No related branches found
No related tags found
No related merge requests found
...@@ -186,8 +186,8 @@ def list_batch_jobs(): ...@@ -186,8 +186,8 @@ def list_batch_jobs():
'email_len': max(len(j.email) for j, _ in batch_jobs_with_counts) 'email_len': max(len(j.email) for j, _ in batch_jobs_with_counts)
} }
template = ('{id:{id_len}} {type:<{type_len}} {added:%Y-%m-%d %H:%M:%S}' template = ('{id:>{id_len}} {type:{type_len}} {added:%Y-%m-%d %H:%M:%S}'
' {count:<{count_len}} {email:{email_len}}') ' {count:>{count_len}} {email:{email_len}}')
for batch_job, count in batch_jobs_with_counts: for batch_job, count in batch_jobs_with_counts:
print template.format( print template.format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment