|
@@ -8,6 +8,7 @@ from flask import Flask, make_response, render_template, request |
|
|
|
|
|
|
|
|
from bitshift import assets |
|
|
from bitshift import assets |
|
|
from bitshift.database import Database |
|
|
from bitshift.database import Database |
|
|
|
|
|
from bitshift.languages import LANGS |
|
|
from bitshift.query import parse_query, QueryParseException |
|
|
from bitshift.query import parse_query, QueryParseException |
|
|
|
|
|
|
|
|
app = Flask(__name__) |
|
|
app = Flask(__name__) |
|
@@ -21,7 +22,7 @@ database = Database() |
|
|
|
|
|
|
|
|
@app.route("/") |
|
|
@app.route("/") |
|
|
def index(): |
|
|
def index(): |
|
|
return render_template("index.html", typeahead_languages=languages.LANGS) |
|
|
|
|
|
|
|
|
return render_template("index.html", typeahead_languages=LANGS) |
|
|
|
|
|
|
|
|
@app.route("/search.json") |
|
|
@app.route("/search.json") |
|
|
def search(): |
|
|
def search(): |
|
|