Skip to content

Commit f525432

Browse files
georges-armTamarChristinaArm
authored andcommitted
More plot.0= -> plot= fixups, attempt #2.
It turns out I failed to use my eyes when checking this was fixed the first time and it actually lost the second plot in the comparison. Change-Id: I97be3b30f4cb3fd3cbc01a819d25a351e355554b
1 parent cb16b10 commit f525432

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lnt/server/ui/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,10 @@ def v4_run_graph(id):
695695

696696
# Convert the old style test parameters encoding.
697697
args = {'highlight_run': id, 'plot': []}
698-
for name, value in request.args.items():
698+
for name, values in request.args.to_dict(flat=False).items():
699699
# If this isn't a test specification, just forward it.
700700
if not name.startswith('test.'):
701-
args[name] = value
701+
args[name] = values
702702
continue
703703

704704
# Otherwise, rewrite from the old style of::
@@ -709,8 +709,8 @@ def v4_run_graph(id):
709709
#
710710
# plot=<machine id>.<test id>.<sample field index>
711711
test_id = name.split('.', 1)[1]
712-
args['plot'].append('%d.%s.%s' % (
713-
run.machine.id, test_id, value))
712+
for value in values:
713+
args['plot'].append('%d.%s.%s' % (run.machine.id, test_id, value))
714714

715715
return v4_redirect(v4_url_for(".v4_graph", **args))
716716

0 commit comments

Comments
 (0)