From 10408fbbdf814f8519a8a27cd20c926a747e97b0 Mon Sep 17 00:00:00 2001 From: Lekuru Date: Tue, 19 Dec 2023 18:59:10 +0100 Subject: [PATCH] Remove user selectin in `DBStats` --- database/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/objects.py b/database/objects.py index a632cc1..fd1c459 100644 --- a/database/objects.py +++ b/database/objects.py @@ -71,7 +71,7 @@ class DBStats(Base): Index('stats_id_idx', user_id) - user = relationship('DBUser', back_populates='stats', lazy='selectin', join_depth=2) + user = relationship('DBUser', back_populates='stats') def __init__(self, user_id: int, mode: int) -> None: self.user_id = user_id