Plot prices using plotly
This commit is contained in:
@@ -6,15 +6,14 @@ from bottle import hook, request, route, run, static_file, view
|
||||
import models
|
||||
from models import Price
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Web application
|
||||
|
||||
|
||||
@route("/")
|
||||
@view("search_results")
|
||||
@view("search_results", template_settings={'noescape':True})
|
||||
def results_page():
|
||||
query = Price.select().order_by(Price.date.desc())
|
||||
results = list(query)
|
||||
results = Price.select().order_by(Price.date.desc())
|
||||
day_classes = {
|
||||
0: "monday",
|
||||
1: "tuesday",
|
||||
|
||||
Reference in New Issue
Block a user