Adventure aus DB
This commit is contained in:
parent
169cf41a01
commit
0ffa2c260e
1 changed files with 5 additions and 0 deletions
|
|
@ -1,7 +1,12 @@
|
|||
from flask import Flask, render_template, request
|
||||
import sqlite3
|
||||
|
||||
app = Flask(__name__, static_folder="assets", static_url_path="/assets")
|
||||
|
||||
def get_db():
|
||||
db = sqlite3.connect("adventure.db")
|
||||
db.row_factory = sqlite3.Row # Spalten per Name ansprechen
|
||||
return db
|
||||
|
||||
@app.route("/")
|
||||
@app.route("/app/")
|
||||
|
|
|
|||
Loading…
Reference in a new issue