prevent css/js caching

This commit is contained in:
Bui
2018-10-10 21:57:29 +01:00
parent b5e4e3fb2e
commit 6f8cca98fc
5 changed files with 71 additions and 84 deletions

9
app.py
View File

@@ -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')