duplicate query

This commit is contained in:
Danglewood
2024-12-17 17:11:42 -08:00
parent fb38ad2d30
commit 70caac38e9

View File

@@ -188,11 +188,6 @@ class Database:
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
)