From baf3b8dc57f7b85aceacfc875d291cc4463b41d7 Mon Sep 17 00:00:00 2001 From: Waldek Date: Mon, 6 Jul 2020 11:11:14 +0200 Subject: [PATCH] color TG lastheard update --- monitor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitor.py b/monitor.py index 1f7ae32..90a97c7 100644 --- a/monitor.py +++ b/monitor.py @@ -621,11 +621,11 @@ def process_message(_bmessage): dur=str(int(float(duration.strip()))) if row[10] not in my_list: if len(row) < 13: - hline=""+row[0][:10]+""+row[0][11:16]+""+row[11]+" ("+row[10]+")"+row[8][2:]+""+row[9]+""+dur+""+row[7][2:]+""+row[6]+""+row[4]+"" + hline=""+row[0][:10]+""+row[0][11:16]+""+row[11]+" ("+row[10]+")"+row[8][2:]+""+row[9]+""+dur+""+row[7][2:]+""+row[6]+""+row[4]+"" my_list.append(row[10]) n += 1 else: - hline=""+row[0][:10]+""+row[0][11:16]+""+row[11]+" ("+row[10]+")"+row[12]+""+row[8][2:]+""+row[9]+""+dur+""+row[7][2:]+""+row[6]+""+row[4]+"" + hline=""+row[0][:10]+""+row[0][11:16]+""+row[11]+" ("+row[10]+")"+row[12]+""+row[8][2:]+""+row[9]+""+dur+""+row[7][2:]+""+row[6]+""+row[4]+"" my_list.append(row[10]) n += 1 f.write(hline+"\n")