switched to mysqldb

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-08 22:03:14 +01:00
parent 81ae9c56cb
commit b2f770e890
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import socket
from flask import Flask, render_template, request, jsonify
import json
import mysql.connector
import MySQLdb
app = Flask(__name__)
@ -24,7 +24,7 @@ except FileNotFoundError:
database = config['mysql']['database']
db = mysql.connector.connect(
db = MySQLdb.connect(
host=config['mysql']['host'],
user=config['mysql']['user'],
password=config['mysql']['password'],