Database bugfix in __bool__ method

This commit is contained in:
trueold89 2024-06-07 19:19:24 +03:00
parent 9e9e508c30
commit 5069c7534c
Signed by: trueold89
GPG Key ID: C122E85DD49E6B30
1 changed files with 1 additions and 1 deletions

View File

@ -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