prevent css/js caching
This commit is contained in:
9
app.py
9
app.py
@@ -1,9 +1,10 @@
|
||||
#!/usr/bin/env python2
|
||||
|
||||
import json
|
||||
import sqlite3
|
||||
import re
|
||||
import os
|
||||
from flask import Flask, g, jsonify
|
||||
from flask import Flask, g, jsonify, render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
DATABASE = 'taiko.db'
|
||||
@@ -66,6 +67,12 @@ def close_connection(exception):
|
||||
db.close()
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def route_index():
|
||||
version = json.load(open('version.json', 'r'))
|
||||
return render_template('index.html', version=version)
|
||||
|
||||
|
||||
@app.route('/api/songs')
|
||||
def route_api_songs():
|
||||
songs = query_db('select * from songs where enabled = 1')
|
||||
|
||||
Reference in New Issue
Block a user