Skip to content

Commit

Permalink
duplicate query
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed Dec 18, 2024
1 parent fb38ad2 commit 70caac3
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,6 @@ async def _write_to_db(self, message) -> None:
await cursor.close()

if self.limit is not None:
records = await conn.execute(
f"SELECT COUNT(*) FROM {self.table_name}" # noqa
)
count = (await records.fetchone())[0]
await records.close()
count = await conn.execute(
f"SELECT COUNT(*) FROM {self.table_name}" # noqa
)
Expand Down

0 comments on commit 70caac3

Please sign in to comment.