chore: code clean-up
This commit is contained in:
parent
009dee690e
commit
2d741c8627
1 changed files with 2 additions and 3 deletions
5
crud.py
5
crud.py
|
|
@ -76,10 +76,9 @@ async def get_events(relay_id: str, filter: NostrFilter) -> List[NostrEvent]:
|
||||||
if filter.limit and type(filter.limit) == int and filter.limit > 0:
|
if filter.limit and type(filter.limit) == int and filter.limit > 0:
|
||||||
query += f" LIMIT {filter.limit}"
|
query += f" LIMIT {filter.limit}"
|
||||||
|
|
||||||
print("### query: ", query)
|
# print("### query: ", query)
|
||||||
print("### values: ", tuple(values))
|
# print("### values: ", tuple(values))
|
||||||
rows = await db.fetchall(query, tuple(values))
|
rows = await db.fetchall(query, tuple(values))
|
||||||
# events = [NostrEvent.from_row(row) for row in rows]
|
|
||||||
|
|
||||||
events = []
|
events = []
|
||||||
for row in rows:
|
for row in rows:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue