From json to DB V8

This commit is contained in:
Greg 2025-05-11 11:02:51 +02:00
parent a06625e035
commit 743b8e033f

2
app.py
View File

@ -1,3 +1,4 @@
from datetime import datetime
from flask import Flask, render_template, request, jsonify from flask import Flask, render_template, request, jsonify
from flask_sqlalchemy import SQLAlchemy from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import func from sqlalchemy import func
@ -104,6 +105,7 @@ def json_to_db(data):
db.session.commit() db.session.commit()
@app.route('/') @app.route('/')
def index(): def index():
return render_template('index.html') return render_template('index.html')