Subversion Repositories SmartDukaan

Rev

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

Rev 4037 Rev 4043
Line 23... Line 23...
23
                ethernet_score = 7.0
23
                ethernet_score = 7.0
24
            else:
24
            else:
25
                ethernet_score = 4.0
25
                ethernet_score = 4.0
26
                
26
                
27
        if features.has_key('Bluetooth'):
27
        if features.has_key('Bluetooth'):
-
 
28
            if len(features.get('Bluetooth')) > 0:
28
            bluetooth = str(features.get('Bluetooth')[0])
29
                bluetooth = str(features.get('Bluetooth')[0])
29
            bluetooth_score = 10.0 if bluetooth.find('3.0') else 7.0
30
                bluetooth_score = 10.0 if bluetooth.find('3.0') else 7.0
-
 
31
            else:
-
 
32
                bluetooth_score = 7.0
30
        
33
        
31
    score = (55.0 * wireless_score + 35.0 * ethernet_score + 10.0 * bluetooth_score) / 100
34
    score = (55.0 * wireless_score + 35.0 * ethernet_score + 10.0 * bluetooth_score) / 100
32
    return score
35
    return score
33
    
36
    
34
 
37