Files
Fulfillment-Backend/utils/list_utils.py
2024-09-10 18:33:19 +03:00

10 lines
222 B
Python

def chunk_list(lst, n) -> list:
for i in range(0, len(lst), n):
yield lst[i:i + n]
def compile_query_to_plain_sql(query) -> str:
return query.compile(compile_kwargs={
'literal_binds': True
})