Merge branch 'master' of github.com:okfn/ckanext-harvest

This commit is contained in:
amercader 2014-01-10 13:49:38 +00:00
commit 278a8e1ada
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ def package_list_for_source(source_id):
''' '''
limit = 20 limit = 20
page = int(request.params.get('page', 1)) page = int(request.params.get('page', 1))
fq = 'harvest_source_id:{0}'.format(source_id) fq = 'harvest_source_id:"{0}"'.format(source_id)
search_dict = { search_dict = {
'fq' : fq, 'fq' : fq,
'rows': limit, 'rows': limit,

View File

@ -156,7 +156,7 @@ def harvest_source_index_clear(context,data_dict):
harvest_source_id = source.id harvest_source_id = source.id
conn = make_connection() conn = make_connection()
query = ''' +%s:%s +site_id:"%s" ''' % ('harvest_source_id', harvest_source_id, query = ''' +%s:"%s" +site_id:"%s" ''' % ('harvest_source_id', harvest_source_id,
config.get('ckan.site_id')) config.get('ckan.site_id'))
try: try:
conn.delete_query(query) conn.delete_query(query)