mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-27 11:41:32 +00:00
duplicate query
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user