summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Portti <mportti2@local>2023-11-10 15:11:01 +0200
committerMikko Portti <mportti2@local>2023-11-10 15:11:01 +0200
commit92b368c3486fd20e550a2ec7b8e7717f7e061c96 (patch)
tree9cb7ef0f97b1f96e9c40baa18266460c1521280f
parent8128427a1d667f62ce4888fe2921ca12b6823deb (diff)
sqlalchemy.orm not needed. Removed from db_actions.py
-rw-r--r--db_actions.py6
1 files changed, 1 insertions, 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 \