remove debug symbols
This commit is contained in:
parent
deae96d8fa
commit
a9597b5c4f
@ -2,7 +2,7 @@ import logging
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from datetime import date, datetime
|
from datetime import date, datetime
|
||||||
from typing import Optional
|
from typing import Optional, Coroutine
|
||||||
|
|
||||||
import mariadb
|
import mariadb
|
||||||
from mariadb import Cursor
|
from mariadb import Cursor
|
||||||
@ -36,12 +36,9 @@ class DatabaseService:
|
|||||||
self._connection: Optional[mariadb.Connection] = None
|
self._connection: Optional[mariadb.Connection] = None
|
||||||
self._reestablishment_lock = False
|
self._reestablishment_lock = False
|
||||||
self.establish_new_connection()
|
self.establish_new_connection()
|
||||||
self.calls = 0
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_connected(self) -> bool:
|
def is_connected(self) -> bool:
|
||||||
self.calls += 1
|
|
||||||
print(f"{self.calls} Calls")
|
|
||||||
try:
|
try:
|
||||||
self._connection.ping()
|
self._connection.ping()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user