From 588c3bf1dba35bd9b85d12faa7678809ddc20320 Mon Sep 17 00:00:00 2001 From: cgte Date: Mon, 11 Oct 2021 14:17:01 +0000 Subject: [PATCH] wip --- papi/main.py | 2 +- papi/utils.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/papi/main.py b/papi/main.py index 259877a..347a719 100644 --- a/papi/main.py +++ b/papi/main.py @@ -199,7 +199,7 @@ def post_sonde_data( html = res.body.decode("utf-8") from papi.mail_sendermodel import sendmail - cond = True + cond = False if cond: sendmail(html) return { diff --git a/papi/utils.py b/papi/utils.py index 9afaf2f..aeb7a71 100644 --- a/papi/utils.py +++ b/papi/utils.py @@ -56,7 +56,8 @@ def compare(channels, previous, current): def clean_state(state): # Ote l'identifiant en début de chaine - return state[0].split("#", 1)[1], *state[1:] + + return state[0].split("#", 1)[1], state[1], '->', state[2] def list_channels(p, c):