Database bugfix in __bool__ method
This commit is contained in:
parent
9e9e508c30
commit
5069c7534c
|
@ -140,7 +140,7 @@ class ServersDB(DataBase):
|
||||||
"""
|
"""
|
||||||
Checks the existence of the server in the database table
|
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:
|
if len(lst) > 0:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue