We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
get_rows
1 parent a8114b2 commit 85cbf15Copy full SHA for 85cbf15
2 files changed
sqlmodel_crud_utils/a_sync.py
@@ -239,7 +239,8 @@ async def get_rows(
239
if stmnt is None:
240
stmnt = select(model)
241
if kwargs:
242
- for key in kwargs:
+ keys = list(kwargs.keys())
243
+ for key in keys:
244
if "__lte" in key:
245
model_key = key.replace("__lte", "")
246
val = kwargs.pop(key)
sqlmodel_crud_utils/sync.py
@@ -236,7 +236,8 @@ def get_rows(
236
237
238
0 commit comments