Pastebin

Paste #2875: No description

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

input={"mm_foot_length":10}

filter=sql.expression?._And(
  list(
     _And(
          getattr(Footwear,k) >= v +10,
          getattr(Footwear,k) <= v +5,
     )
  ) for k,v in input
)
query.filter(filter)

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.