Commit edba5d60 authored by Rad Cirskis's avatar Rad Cirskis

less ambiguous variable name 'l'

parent 356d8fdf
...@@ -75,14 +75,14 @@ def tuple_operator_in(model_pk, ids): ...@@ -75,14 +75,14 @@ def tuple_operator_in(model_pk, ids):
The returning operator can be used within a filter(), as it is just an or_ operator The returning operator can be used within a filter(), as it is just an or_ operator
""" """
l = [] ands = []
for id in ids: for id in ids:
k = [] k = []
for i in range(len(model_pk)): for i in range(len(model_pk)):
k.append(eq(model_pk[i], id[i])) k.append(eq(model_pk[i], id[i]))
l.append(and_(*k)) ands.append(and_(*k))
if len(l) >= 1: if len(ands) >= 1:
return or_(*l) return or_(*ands)
else: else:
return None return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment