From 766d07e4b744c66ce4578917eec888361b8d3601 Mon Sep 17 00:00:00 2001
From: PGijsbers
Date: Thu, 2 Jul 2026 09:00:41 +0200
Subject: [PATCH] Make sure to return groups if loaded but empty
---
src/database/users.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/database/users.py b/src/database/users.py
index 379c6f8..745e311 100644
--- a/src/database/users.py
+++ b/src/database/users.py
@@ -136,7 +136,7 @@ async def fetch(cls, api_key: APIKey, user_db: AsyncConnection) -> Self | None:
return None
async def get_groups(self) -> list[UserGroup]:
- if self._groups:
+ if self._groups is not None:
return self._groups
if self._database is None: