From 800a863571e7c61ddcbcc998bd517c2e73acb58e Mon Sep 17 00:00:00 2001 From: pengtao Date: Wed, 23 Oct 2019 10:56:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=BC=E5=87=BA=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- daily_report/dreport.py | 13 ++----------- daily_report/templates/report.html | 1 - 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/daily_report/dreport.py b/daily_report/dreport.py index d5938ea..7091062 100644 --- a/daily_report/dreport.py +++ b/daily_report/dreport.py @@ -87,15 +87,6 @@ class Report: self.project = project - - def get_data(self): - data = defaultdict(tuple) - fromappids = () - for fromappid in fromappids: - activa, new, share, k = self.collect_tga(fromappid) - data[fromappid] = (activa, new, share, k) - - def get_all_data(self, **args): activa_sql = f"""SELECT count(distinct "#account_id") @@ -325,9 +316,9 @@ class Report: args['fromappid_cn'] = fromappids.get(f_key, None) or "未知" temp['input'].append(self.get_input_fromappid(**args)) temp['output'].append(self.get_output_fromappid(**args)) - print(data) + print(data) data.append(temp) - return data + return data diff --git a/daily_report/templates/report.html b/daily_report/templates/report.html index 554f4ac..9a1619c 100644 --- a/daily_report/templates/report.html +++ b/daily_report/templates/report.html @@ -68,7 +68,6 @@ {% endfor %} - >