From b2f770e8901cfb7b92c63d0a91e6b832badce013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 8 Feb 2024 22:03:14 +0100 Subject: [PATCH] switched to mysqldb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.py b/server/app.py index fc6c161..0490caf 100644 --- a/server/app.py +++ b/server/app.py @@ -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'],