diff --git a/fosdem_video_progress.py b/fosdem_video_progress.py index 93feef1..9634bec 100755 --- a/fosdem_video_progress.py +++ b/fosdem_video_progress.py @@ -31,7 +31,7 @@ def get_data() -> tuple[datetime, dict[str, int], dict[str, int]]: for talk in data: states[talk['state']] += 1 jobstates[talk['progress']] += 1 - return time, states, jobstates + return time, dict(states), dict(jobstates) def main(): @@ -56,7 +56,6 @@ def main(): # Show the plot x = sorted(ts.data.keys()) # times - # vvv should be a defaultdict anyway, but let's be defensive :-) ys = [tuple(ts.data[time][0].get(state, 0) for state in ts.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.