From 4f73edaa37f4f4d21436e36dae4198231a59ed41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Wed, 6 Dec 2023 11:49:48 +0100 Subject: [PATCH] fix: sqlalchemy_utils EncryptedType deprecation --- web/flaskr/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/flaskr/models.py b/web/flaskr/models.py index 134e444d..00c8e538 100755 --- a/web/flaskr/models.py +++ b/web/flaskr/models.py @@ -23,7 +23,7 @@ from flask_sqlalchemy import SQLAlchemy from flaskr.tasks import background_upload from flaskr.utils import secret_key -from sqlalchemy_utils import EncryptedType +from sqlalchemy_utils import StringEncryptedType db = SQLAlchemy() @@ -585,8 +585,8 @@ class Meeting(db.Model): # BBB params name = db.Column(db.Unicode(150)) - attendeePW = db.Column(EncryptedType(db.Unicode(50), secret_key())) - moderatorPW = db.Column(EncryptedType(db.Unicode(50), secret_key())) + attendeePW = db.Column(StringEncryptedType(db.Unicode(50), secret_key())) + moderatorPW = db.Column(StringEncryptedType(db.Unicode(50), secret_key())) welcome = db.Column(db.UnicodeText()) dialNumber = db.Column(db.Unicode(50)) voiceBridge = db.Column(db.Unicode(50))