Subversion Repositories SmartDukaan

Rev

Rev 1915 | Rev 2655 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1915 Rev 1936
Line 38... Line 38...
38
                
38
                
39
                elif thickness > 20 :
39
                elif thickness > 20 :
40
                    thickness_score = 0
40
                    thickness_score = 0
41
 
41
 
42
                else :
42
                else :
43
                    thickness_score = 10 - (thickness - 9) / (20 - 9)
43
                    thickness_score = 10 - (thickness - 9) / (20 - 9) * 10
44
    
44
    
45
    score = (weight_score*50 + thickness_score*50)/100
45
    score = (weight_score*50 + thickness_score*50)/100.0
46
    
46
    
47
    return score
47
    return score