Skip to content

Commit ca548f6

Browse files
committed
[ADD] select by uniqeid without limit
1 parent 0ad88dd commit ca548f6

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
### Asterisk fastapi 1.0.0
2+
### Asterisk fastapi 1.0.6
33

44
Source code [Github](https://github.com/shurshilov/odoo)
55

const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "1.0.5"
1+
VERSION = "1.0.6"

services/database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async def get_cdr_uniqueid(self, uniqueid):
9595
async with aiosqlite.connect(self.config.db_host) as database:
9696
database.row_factory = aiosqlite.Row
9797
async with database.execute(
98-
f"SELECT * FROM {self.config.db_table_cdr_name} where uniqueid= %s limit 1;",
98+
f"SELECT * FROM {self.config.db_table_cdr_name} where uniqueid= %s;",
9999
[uniqueid],
100100
) as cursor:
101101
async for row in cursor:
@@ -194,7 +194,7 @@ async def check_cdr_old(self):
194194
async def get_cdr_uniqueid(self, uniqueid):
195195
conn, cur = await self.get_conn_cur()
196196
await cur.execute(
197-
f"SELECT * FROM {self.config.db_table_cdr_name} where uniqueid = %s limit 1;",
197+
f"SELECT * FROM {self.config.db_table_cdr_name} where uniqueid = %s;",
198198
(uniqueid),
199199
)
200200
rows = await cur.fetchall()
@@ -273,7 +273,7 @@ async def check_cdr_old(self):
273273
async def get_cdr_uniqueid(self, uniqueid):
274274
conn, cur = await self.get_conn_cur()
275275
await cur.execute(
276-
f"SELECT * FROM {self.config.db_table_cdr_name} where uniqueid = %s limit 1;",
276+
f"SELECT * FROM {self.config.db_table_cdr_name} where uniqueid = %s;",
277277
(uniqueid),
278278
)
279279
rows = await cur.fetchall()

0 commit comments

Comments
 (0)