From e0126cf0854657e47fb1ece89aa456ab3ce8f47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 8 Feb 2024 19:41:23 +0100 Subject: [PATCH] updated mysql MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- requirements.txt | 2 +- server/app.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 149b53a..15178ea 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ Flask==2.3.2 -Flask_MySQLdb==2.0.0 neopixel==0.0.1 +pymysql==1.1.0 python_osc==1.8.3 Requests==2.31.0 wifi==0.3.8 diff --git a/server/app.py b/server/app.py index 9780310..78e46d5 100644 --- a/server/app.py +++ b/server/app.py @@ -1,8 +1,10 @@ import socket from flask import Flask, render_template, request, jsonify -from flask_mysqldb import MySQL from pythonosc import udp_client, dispatcher, osc_server import json +import pymysql + +pymysql.install_as_MySQLdb() app = Flask(__name__)