From 096d2ea2fdb2e00d9a891b42cc63b129f3760492 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Fri, 18 Jan 2019 18:51:51 +0800 Subject: [PATCH] . --- chapter2/init.sql | 1 + chapter2/mysite/myapp/static/scripts/trend.js | 1 - chapter2/mysite/myapp/templates/myapp/result.html | 2 +- chapter3/spark.py | 10 ++++++++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/chapter2/init.sql b/chapter2/init.sql index ee06b37..f9101e7 100644 --- a/chapter2/init.sql +++ b/chapter2/init.sql @@ -87,3 +87,4 @@ create table datas ( ) comment = '通用配置表'; insert into datas (`key`, data) values ('from_type', '{}'); insert into datas (`key`, data) values ('last_month_sell', '{}'); +insert into datas (`key`, data) values ('hour_sell', '{}'); diff --git a/chapter2/mysite/myapp/static/scripts/trend.js b/chapter2/mysite/myapp/static/scripts/trend.js index ae490be..57a47c2 100755 --- a/chapter2/mysite/myapp/static/scripts/trend.js +++ b/chapter2/mysite/myapp/static/scripts/trend.js @@ -82,7 +82,6 @@ $(function(){ - //主要症状 var histogramChart2 = echarts.init(document.getElementById('histogramChart2')); histogramChart2.setOption({ diff --git a/chapter2/mysite/myapp/templates/myapp/result.html b/chapter2/mysite/myapp/templates/myapp/result.html index 3b9384d..b9e3b2d 100644 --- a/chapter2/mysite/myapp/templates/myapp/result.html +++ b/chapter2/mysite/myapp/templates/myapp/result.html @@ -86,7 +86,7 @@