From 92b368c3486fd20e550a2ec7b8e7717f7e061c96 Mon Sep 17 00:00:00 2001 From: Mikko Portti Date: Fri, 10 Nov 2023 15:11:01 +0200 Subject: sqlalchemy.orm not needed. Removed from db_actions.py --- db_actions.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/db_actions.py b/db_actions.py index 5ee2f16..dc59d00 100644 --- a/db_actions.py +++ b/db_actions.py @@ -2,13 +2,9 @@ from time import time from flask import Flask from flask_sqlalchemy import SQLAlchemy -from sqlalchemy.orm import DeclarativeBase from sqlalchemy.sql import text -class Base(DeclarativeBase): - pass - -db = SQLAlchemy(model_class=Base) +db = SQLAlchemy() def user_new(nick): sql = "INSERT \ -- cgit v1.2.3