Add quotes to harvest_source_id in Solr query when clearing harvest sources
This commit is contained in:
parent
c338452872
commit
51e842ee6e
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue