Changeset 1361


Ignore:
Timestamp:
02/12/07 14:57:09 (13 years ago)
Author:
jukka
Message:

Fixes bug when titlecloud doesn't have any title worth more than 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LargeSectionFolder.py

    r1360 r1361  
    610610        titlecloud.sort() 
    611611        maxscore=max([x[1] for x in titlecloud]) 
    612         titlecloud=map(adjust, titlecloud) 
     612        if maxscore>1: 
     613            titlecloud=map(adjust, titlecloud) 
    613614        return titlecloud 
    614615 
     
    682683 
    683684        # adjust to 1-8. We don't have to worry about score 0, they're already removed. 
    684         resultlist=map(adjust, resultlist)          
     685        if maxcount>1: 
     686            resultlist=map(adjust, resultlist)          
    685687        # prettify language names 
    686688        if index_type=='Language' or index_type=='getLanguage_skills': 
Note: See TracChangeset for help on using the changeset viewer.