Subversion Repositories SmartDukaan

Rev

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

Rev 4129 Rev 7973
Line 54... Line 54...
54
            # GPRS : 1, 0
54
            # GPRS : 1, 0
55
            if features.has_key("GPRS") :
55
            if features.has_key("GPRS") :
56
                score += 10*15
56
                score += 10*15
57
    
57
    
58
            # EDGE : 1, 0
58
            # EDGE : 1, 0
59
            if features.has_key("EDGE") :
59
            #if features.has_key("EDGE") :
60
                score += 10*10
60
            #    score += 10*10
61
            
61
            
62
            # 3G : 2, 0
62
            # 3G : 2, 0
63
            if features.has_key("3G") :
63
            if features.has_key("3G") :
64
                score += 10*25
64
                score += 10*25
65
            
65
            
66
            # WLAN : 2, 0
66
            # WLAN : 2, 0
67
            if features.has_key("Wi-Fi") :
67
            if features.has_key("Wi-Fi") :
68
                score += 10*25
68
                score += 10*20
69
            
69
            
70
            # Bluetooth : 1, 0
70
            # Bluetooth : 1, 0
71
            if features.has_key("Bluetooth") :
71
            if features.has_key("Bluetooth") :
72
                score += 10*10
72
                score += 10*10
73
             
73
             
Line 76... Line 76...
76
                score += 10*10
76
                score += 10*10
77
 
77
 
78
            # NFC
78
            # NFC
79
            if features.has_key("NFC") :
79
            if features.has_key("NFC") :
80
                score += 10*5
80
                score += 10*5
-
 
81
                
-
 
82
            # GPS
-
 
83
            if features.has_key("GPS type") :
-
 
84
                gps_type = features.get("GPS type")
-
 
85
                if "Integrated GPS" in gps_type :
-
 
86
                    score += 5*15
-
 
87
                    
-
 
88
                if "A-GPS" in gps_type :
-
 
89
                    score += 5*15
81
 
90
 
82
        score = score / 100
91
        score = score / 100
83
    return score
92
    return score