mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-17 09:14:37 +00:00
Livesync: Show only unprocessed queue count in CLI
This commit is contained in:
parent
d6d95e9038
commit
dde39d9c69
@ -58,7 +58,8 @@ def agents():
|
||||
backend_title = cformat('%{red!}invalid backend ({})%{reset}').format(agent.backend_name)
|
||||
else:
|
||||
backend_title = agent.backend.title
|
||||
table_data.append([unicode(agent.id), agent.name, backend_title, initial, unicode(agent.queue.count())])
|
||||
table_data.append([unicode(agent.id), agent.name, backend_title, initial,
|
||||
unicode(agent.queue.filter_by(processed=False).count())])
|
||||
table = AsciiTable(table_data)
|
||||
table.justify_columns[4] = 'right'
|
||||
print table.table
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user