Skip to content

Commit

Permalink
Cleaned up the annotate_submission_response text
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Jan 23, 2015
1 parent 7fa76a3 commit b67026b
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions misc/edsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,13 @@ def annotate_submission_response(r):
triStatusNum = triStatus['statusnum']
if triStatusNum == 401:
coord = triEnt['coord']
systems[sysName] += [
"[{},{},{}]".format(
coord['x'], coord['y'], coord['z']
)
]
msg = "Position [{},{},{}]".format(
coord['x'], coord['y'], coord['z']
)
else:
systems[sysName] += [
"{} (#{})".format(triStatus['msg'], triStatusNum)
]
msg = "{} (#{})".format(triStatus['msg'], triStatusNum)
if not msg in systems[sysName]:
systems[sysName].append(msg)
for sys, vals in systems.items():
print("{}: {}.".format(sys, '. '.join(vals)))
for distEnt in status['dist']:
Expand Down

0 comments on commit b67026b

Please sign in to comment.