Commit 7d839fbd authored by Jason Rhinelander's avatar Jason Rhinelander
Browse files

Fix `/find` when given a single block

parent 9d8a738d
......@@ -161,6 +161,9 @@ def pool_list(env, start_response, q):
def find_pool(env, start_response, q):
blocks = {}
find = q['block'] if 'block' in q else None
if not isinstance(find, (list, tuple)):
find = (find,)
if find:
pg = pgsql()
cur = pg.cursor()
......
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