Subversion Repositories SmartDukaan

Rev

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

Rev 6523 Rev 7973
Line 144... Line 144...
144
                        type_score = 9.0
144
                        type_score = 9.0
145
                    if type == "TFT LCD" :
145
                    if type == "TFT LCD" :
146
                        type_score = 8.5
146
                        type_score = 8.5
147
                    elif type == "Super LCD":
147
                    elif type == "Super LCD":
148
                        type_score = 9.5
148
                        type_score = 9.5
-
 
149
                        
-
 
150
        if category=="Mobile Phones" and features.has_key("Touchscreen type") :
-
 
151
            touchscreen_type = features.get("Type")
-
 
152
            if len(touchscreen_type) > 0 :
-
 
153
                
-
 
154
                if "T9 keyboard" in touchscreen_type:
-
 
155
                    t_type_score = 5.0
-
 
156
                if "Half QWERTY keyboard" in touchscreen_type:
-
 
157
                    t_type_score = 6.0
-
 
158
                if "Touchscreen T9 keyboard" in touchscreen_type :
-
 
159
                    t_type_score = 7.0
-
 
160
                if "QWERTY keyboard" in touchscreen_type:
-
 
161
                    t_type_score = 8.0
-
 
162
                if "Touchscreen QWERTY keyboard" in touchscreen_type:
-
 
163
                    if "QWERTY keyboard" in touchscreen_type:
-
 
164
                        type_score = 10.0
-
 
165
                    else:
-
 
166
                        type_score = 9.0    
149
    
167
    
150
 
168
 
151
 
169
 
152
    print "type_score" + str(type_score)
170
    print "type_score" + str(type_score)
153
    print "screen_size_score: " + str(screen_size_score)
171
    print "screen_size_score: " + str(screen_size_score)