Sfoglia il codice sorgente

Fix missing import.

tags/v1.0^2
Ben Kurtovic 10 anni fa
parent
commit
fd3a8b1598
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      app.py

+ 2
- 1
app.py Vedi File

@@ -8,6 +8,7 @@ from flask import Flask, make_response, render_template, request

from bitshift import assets
from bitshift.database import Database
from bitshift.languages import LANGS
from bitshift.query import parse_query, QueryParseException

app = Flask(__name__)
@@ -21,7 +22,7 @@ database = Database()

@app.route("/")
def index():
return render_template("index.html", typeahead_languages=languages.LANGS)
return render_template("index.html", typeahead_languages=LANGS)

@app.route("/search.json")
def search():


Caricamento…
Annulla
Salva