From json to DB V8
This commit is contained in:
parent
a06625e035
commit
743b8e033f
2
app.py
2
app.py
@ -1,3 +1,4 @@
|
||||
from datetime import datetime
|
||||
from flask import Flask, render_template, request, jsonify
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
from sqlalchemy import func
|
||||
@ -104,6 +105,7 @@ def json_to_db(data):
|
||||
db.session.commit()
|
||||
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return render_template('index.html')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user