From 7d671f73d392ccf202e4063a517c9a282f748af3 Mon Sep 17 00:00:00 2001 From: pengtao Date: Thu, 24 Oct 2019 16:05:40 +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 a9c34b0..1f2ba83 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: + if line and line != '': 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: + if line and line != '': 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: + if line and line != '': output_fromappids.append(line[0]) except Exception: log.error(f"split {line} error", exc_info=True)