first commit

This commit is contained in:
no
2024-11-29 14:00:20 +01:00
commit a6fe7bf1c7
16 changed files with 455 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import mysql.connector
from flask import current_app
def get_db_connection():
return mysql.connector.connect(
host=current_app.config['MYSQL_HOST'],
user=current_app.config['MYSQL_USER'],
password=current_app.config['MYSQL_PASSWORD'],
database=current_app.config['MYSQL_DB']
)