diff --git a/autoagora/logs_db.py b/autoagora/logs_db.py index f114c7e..a9c17fe 100644 --- a/autoagora/logs_db.py +++ b/autoagora/logs_db.py @@ -27,7 +27,7 @@ class MRQ_Info: def __init__(self, pgpool: asyncpg.Pool) -> None: self.pgpool = pgpool - self.datetime = datetime.now() + self.timestamp = datetime.now() async def create_mrq_log_table(self) -> None: async with self.pgpool.acquire() as connection: @@ -93,7 +93,7 @@ async def get_most_frequent_queries_null_time( query=self.return_query_body(row[1]) if self.return_query_body(row[1]) else "null", - datetime=self.datetime, + timestamp=self.timestamp, ) for row in rows ]