Subversion Repositories SmartDukaan

Rev

Rev 78 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 78 Rev 110
Line 8... Line 8...
8
        # Weight : <=100-3, <=150-2, >150-1
8
        # Weight : <=100-3, <=150-2, >150-1
9
        if features.has_key("Weight") :
9
        if features.has_key("Weight") :
10
            weight = features.get("Weight")
10
            weight = features.get("Weight")
11
            
11
            
12
            if len(weight) > 0 :
12
            if len(weight) > 0 :
13
                weight = int(weight[0])
13
                weight = float(weight[0])
14
                print "weight=" + `weight`
14
                print "weight=" + `weight`
15
                
15
                
16
                if weight <= 100 :
16
                if weight <= 100 :
17
                    score += 3
17
                    score += 3
18
                
18