Yield magic replaced at proper place

This commit is contained in:
Colin Goutte 2021-10-01 16:08:57 +02:00
parent 9955170b8d
commit 5d39c0f623
1 changed files with 2 additions and 1 deletions

View File

@ -212,6 +212,8 @@ def list_notification_as_text(
return
mesures = sonde.mesures
res = []
for previous, present in zip(mesures, mesures[1:]):
date = present.content["date"]
previous = utils.prepare(previous.content)
@ -219,7 +221,6 @@ def list_notification_as_text(
all_channels = sorted(set((*previous["channels"], *present["channels"])))
diff = utils.compare(all_channels, previous, present)
res = []
if diff:
for d in diff["changements"]:
line = date, *utils.clean_state(d)