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):