Skip to content

Commit

Permalink
Merge pull request #175 from trjaffe/master
Browse files Browse the repository at this point in the history
fix to registry.regsearch() waveband option
  • Loading branch information
cbanek authored Sep 18, 2019
2 parents 6b40523 + ee5204e commit a26cb0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

- Update ex_casA_image_cat example. [#172]

- Fix waveband option in registry.regsearch [#175]


0.9.3 (2019-05-30)
==================
Expand Down
2 changes: 1 addition & 1 deletion pyvo/registry/regtap.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _unions():
""")

if waveband:
wheres.append("1 = ivo_hashlist_has('{}', waveband)".format(
wheres.append("1 = ivo_hashlist_has(rr.resource.waveband, '{}')".format(
tap.escape(waveband)))

if datamodel:
Expand Down
2 changes: 1 addition & 1 deletion pyvo/registry/tests/test_regtap.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def wavebandtest_callback(request, content):
data = dict(parse_qsl(request.body))
query = data['QUERY']

assert "1 = ivo_hashlist_has('optical', waveband" in query
assert "1 = ivo_hashlist_has(rr.resource.waveband, 'optical'" in query

return get_pkg_data_contents('data/regtap.xml')

Expand Down

0 comments on commit a26cb0a

Please sign in to comment.