Skip to content

Commit a245e9d

Browse files
committed
.
1 parent 7874c44 commit a245e9d

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

devtracker.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -952,17 +952,17 @@ def getCacheData(fileName)
952952
else
953953
activityStatuses = '&fq=activity_status_code:(2 OR 3 OR 4 OR 5)'
954954
end
955-
if(!query.start_with?("\""))
956-
tempQ = '"' + query + '"'
957-
isInIdentifier = RestClient.get api_simple_log(settings.oipa_api_url + "activity?q=iati_identifier:#{tempQ}&fl=iati_identifier&rows=1")
958-
isInTitle = RestClient.get api_simple_log(settings.oipa_api_url + "activity?q=title_narrative_text:#{tempQ}&fl=iati_identifier&rows=1")
959-
checkInID = Oj.load(isInIdentifier)
960-
checkInTitle = Oj.load(isInTitle)
961-
if(checkInID['response']['numFound'].to_i == 1 || checkInTitle['response']['numFound'].to_i == 1)
962-
query = tempQ
963-
else
964-
end
965-
end
955+
# if(!query.start_with?("\""))
956+
# tempQ = '"' + query + '"'
957+
# isInIdentifier = RestClient.get api_simple_log(settings.oipa_api_url + "activity?q=iati_identifier:#{tempQ}&fl=iati_identifier&rows=1")
958+
# isInTitle = RestClient.get api_simple_log(settings.oipa_api_url + "activity?q=title_narrative_text:#{tempQ}&fl=iati_identifier&rows=1")
959+
# checkInID = Oj.load(isInIdentifier)
960+
# checkInTitle = Oj.load(isInTitle)
961+
# if(checkInID['response']['numFound'].to_i == 1 || checkInTitle['response']['numFound'].to_i == 1)
962+
# query = tempQ
963+
# else
964+
# end
965+
# end
966966
filters = prepareFilters(query.to_s, 'F')
967967
response = solrResponse(query, activityStatuses, 'F', 0, '', '')
968968
if(response['response']['numFound'].to_i > 0)

0 commit comments

Comments
 (0)