diff --git a/daily_report/dreport.py b/daily_report/dreport.py index 29cf2da..9cbe2dc 100644 --- a/daily_report/dreport.py +++ b/daily_report/dreport.py @@ -476,7 +476,6 @@ class Report: args['tga'] = tga temp['all'] = self.get_all_data(**args) - pdb.set_trace() if temp['all']: ss_input_fromappids = self.get_ss_input_fromappid(args) ss_output_fromappids = self.get_ss_output_fromappid(args) @@ -498,7 +497,11 @@ class Report: args['fromappid'] = item args['fromappid_cn'] = fromappids.get(item.split('_success')[0], None) or item temp['output'].append(self.get_output_fromappid(**args)) - data.append(temp) + try: + if temp['all'][0] > 10: + data.append(temp) + except Exception: + log.error(f"get active user failed,{temp['all']}", exc_info=True) return data