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)