From 5069c7534c9582e0162a85cce41ac878a36f213a Mon Sep 17 00:00:00 2001 From: trueold89 Date: Fri, 7 Jun 2024 19:19:24 +0300 Subject: [PATCH] Database bugfix in __bool__ method --- hellmbot/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hellmbot/db.py b/hellmbot/db.py index f0f0fe3..337ef30 100644 --- a/hellmbot/db.py +++ b/hellmbot/db.py @@ -140,7 +140,7 @@ class ServersDB(DataBase): """ Checks the existence of the server in the database table """ - lst = self._get(self.TABLE, ["server_id"]) + lst = self._get(self.TABLE, ["server_id"], {"server_id": self.server}) if len(lst) > 0: return True return False