Skip to content
Snippets Groups Projects
Commit a1cdf255 authored by Nathaniel Kofalt's avatar Nathaniel Kofalt
Browse files

Don't randomly omit keys that are zero

parent 6649fae1
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,11 @@ class Jobs(base.RequestHandler):
# Map mongo result to a useful object
states = {}
# Don't randomly omit keys that are zero
for s in JOB_STATES:
states[s] = 0
for r in result:
key = r['_id']
val = r['count']
......
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