Fix checking connection in db client
This commit is contained in:
@@ -94,8 +94,7 @@ class DatabaseClient(Application):
|
|||||||
"""
|
"""
|
||||||
if not self._can_perform_action():
|
if not self._can_perform_action():
|
||||||
return False
|
return False
|
||||||
print(self.query("SELECT * FROM pg_stat_activity", connection_id=connection_id))
|
return self.query("SELECT * FROM pg_stat_activity", connection_id=connection_id)
|
||||||
return self.connected
|
|
||||||
|
|
||||||
def _connect(
|
def _connect(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user