Sort output

This commit is contained in:
Colin Goutte 2021-09-24 14:55:54 +02:00
parent 2b9d8437f1
commit 1a91c32880
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ def get_rapport(idsonde):
pass
else:
last = utils.prepare(last)
for name, data in sorted(last["channels"].items()):
for name, data in sorted(
last["channels"].items(), key=lambda text: float(text[0].split("#")[0])
):
yield f'{name} {data["status"]}'