Browse Source

Fix missing import.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
fd3a8b1598
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app.py

+ 2
- 1
app.py View File

@@ -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():


Loading…
Cancel
Save