state order

master
LEdoian 8 months ago
parent ddc560a4ae
commit e81844b6a6

@ -66,7 +66,23 @@ def main():
# Show the plot
x = sorted(ts.data.keys()) # times
states = sorted(ts.states)
# first is lowest
states_low = (
'lost',
'ignored',
'uninteresting',
'broken',
'preview',
'cutting',
'transcoding',
'publishing',
)
states_high = (
'done',
'waiting_for_files',
)
states_other = tuple(sorted(ts.states - (set(states_low) | set(states_high))))
states = states_low + states_other + states_high
ys = [tuple(ts.data[time][0].get(state, 0) for state in states) for time in x] # numbers per state
# We do not show jobstates atm. Too lazy.
# ys are transposed we need vectors by times, not by states.

Loading…
Cancel
Save