Improve alert handling, centralize aiohttp.ClientSession, and fix minor bugs
This commit is contained in:
@@ -11,7 +11,7 @@ from token_bot.persistant_database import database as pdb
|
||||
class AlertsController:
|
||||
def __init__(self, session: aiohttp.ClientSession):
|
||||
self._pdb: pdb.Database = pdb.Database(session)
|
||||
self.table = aiodynamo.client.Table = self._pdb.client.table(
|
||||
self.table: aiodynamo.client.Table = self._pdb.client.table(
|
||||
os.getenv("ALERTS_TABLE")
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user