From f765da92497b4d7564f54fa35b9915ef15be7166 Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 24 Oct 2019 16:08:49 +0800 Subject: [PATCH] remove fromappid = '' --- daily_report/dreport.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daily_report/dreport.py b/daily_report/dreport.py index 1f2ba83..181e4ee 100644 --- a/daily_report/dreport.py +++ b/daily_report/dreport.py @@ -341,7 +341,7 @@ class Report: if data: try: for line in data: - if line and line != '': + if line and line[0] != '': input_fromappids.append(line[0]) except Exception: log.error(f"split {line} error", exc_info=True) @@ -364,7 +364,7 @@ class Report: if data: try: for line in data: - if line and line != '': + if line and line[0] != '': output_fromappids.append(line[0].split('_success')[0]) except Exception: log.error(f"split {line} error", exc_info=True) @@ -383,7 +383,7 @@ class Report: if data: try: for line in data: - if line and line != '': + if line and line[0] != '': output_fromappids.append(line[0]) except Exception: log.error(f"split {line} error", exc_info=True)