Skip to content
Snippets Groups Projects
Commit d056c071 authored by juanf's avatar juanf
Browse files

SP-775 BIS-491 iPad Search Performance - Comment out print to log

SVN: 29575
parent c6ec5a6e
No related branches found
No related tags found
No related merge requests found
......@@ -719,7 +719,7 @@ class YeastLabSearchRequestHandler(SearchRequestHandler):
all_unsorted_samples = self.searchService.searchForSamples(all_samples_sc)
#Custom Sorting
start = int(round(time.time() * 1000));
# start = int(round(time.time() * 1000));
samples_with_scores = [];
for sample in all_unsorted_samples:
score = self.calculate_score(sample, self.parameters['searchtext']);
......@@ -728,8 +728,8 @@ class YeastLabSearchRequestHandler(SearchRequestHandler):
samples_with_scores = sorted(samples_with_scores, key=lambda sample_with_score: sample_with_score[1], reverse=True); #Sorting the list using the score
self.samples = [sample_with_score[0] for sample_with_score in samples_with_scores[0:100]]; #Get first 100 results for the ipad
total = int(round(time.time() * 1000)) - start;
print "Time To Sort: %d" % total;
# total = int(round(time.time() * 1000)) - start;
# print "Time To Sort: %d" % total;
# Children of the results
self.sort_samples_by_type(self.samples)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment