2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

artiq_run: sort result output alphabetically

This commit is contained in:
Sebastien Bourdeauducq 2015-02-17 16:12:21 -07:00
parent 614a96a3d7
commit 656099a331

View File

@ -123,8 +123,9 @@ def main():
else:
if rdb.data.read or rdb.realtime_data.read:
print("Results:")
for k, v in chain(rdb.realtime_data.read.items(),
rdb.data.read.items()):
for k, v in sorted(chain(rdb.realtime_data.read.items(),
rdb.data.read.items()),
key=itemgetter(0)):
print("{}: {}".format(k, v))
finally:
dbh.close()