From 66a03abc46d6115df2650c9048511ed397d79f68 Mon Sep 17 00:00:00 2001 From: nex Date: Mon, 19 Feb 2024 11:05:47 +0000 Subject: [PATCH 1/2] Lazily fix import error --- web/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/server.py b/web/server.py index 5e462a2..4c1bca5 100644 --- a/web/server.py +++ b/web/server.py @@ -20,7 +20,7 @@ from starlette.websockets import WebSocket, WebSocketDisconnect from websockets.exceptions import WebSocketException from config import guilds -from utils import BannedStudentID, Student, VerifyCode, console, get_or_none, BridgeBind +from utils import BannedStudentID, Student, VerifyCode, console, get_or_none, BridgeBinds as BridgeBind from utils.db import AccessTokens SF_ROOT = Path(__file__).parent / "static" From 610911850a8f7df6935c9d252796d13a96168549 Mon Sep 17 00:00:00 2001 From: nex Date: Mon, 19 Feb 2024 11:07:01 +0000 Subject: [PATCH 2/2] Properly fix import error --- utils/db.py | 2 +- web/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/db.py b/utils/db.py index 0c6c0a0..5bb815f 100644 --- a/utils/db.py +++ b/utils/db.py @@ -225,7 +225,7 @@ class AccessTokens(orm.Model): ip_info: dict | None -class BridgeBinds(orm.Model): +class BridgeBind(orm.Model): tablename = "bridge_binds" registry = registry fields = { diff --git a/web/server.py b/web/server.py index 4c1bca5..5e462a2 100644 --- a/web/server.py +++ b/web/server.py @@ -20,7 +20,7 @@ from starlette.websockets import WebSocket, WebSocketDisconnect from websockets.exceptions import WebSocketException from config import guilds -from utils import BannedStudentID, Student, VerifyCode, console, get_or_none, BridgeBinds as BridgeBind +from utils import BannedStudentID, Student, VerifyCode, console, get_or_none, BridgeBind from utils.db import AccessTokens SF_ROOT = Path(__file__).parent / "static"