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 @@