Commit 6e1447db authored by Kyle Xie's avatar Kyle Xie

fixed builds

parent 7777e56e
......@@ -33,6 +33,10 @@ matrix:
addons:
postgresql: "9.4"
apt:
packages:
- postgresql-9.4-postgis-2.4
- postgresql-9.4-postgis-2.4-scripts
services:
- postgresql
......
......@@ -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
"""
l = []
ands = []
for id in ids:
k = []
for i in range(len(model_pk)):
k.append(eq(model_pk[i], id[i]))
l.append(and_(*k))
if len(l) >= 1:
return or_(*l)
ands.append(and_(*k))
if len(ands) >= 1:
return or_(*ands)
else:
return None
......
......@@ -8,7 +8,7 @@ skip_missing_interpreters = true
[flake8]
max_line_length = 120
ignore = E402
ignore = E402,E722
[testenv]
usedevelop = true
......
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