From 10f23e7c4cd44119be18535ea461035e373be99e Mon Sep 17 00:00:00 2001 From: "carlos.vdr" Date: Thu, 27 Jul 2023 17:58:47 -0600 Subject: [PATCH] feat: Changed missed variables Signed-off-by: carlos.vdr --- autoagora/logs_db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ]