Subversion Repositories SmartDukaan

Rev

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

Rev 8083 Rev 8087
Line 23... Line 23...
23
           os = os[0]
23
           os = os[0]
24
           if os.find("Proprietary") > -1 :
24
           if os.find("Proprietary") > -1 :
25
               os_score = 4
25
               os_score = 4
26
           elif os.find("Android") > -1 :
26
           elif os.find("Android") > -1 :
27
               if os.find("1.5") > -1 :
27
               if os.find("1.5") > -1 :
28
                   os_score = 6
28
                   os_score = 5
29
               if os.find("1.6") > -1 :
29
               if os.find("1.6") > -1 :
30
                   os_score = 6.5
30
                   os_score = 5.5
31
               if os.find("2.1") > -1 :
31
               if os.find("2.1") > -1 :
32
                   os_score = 7
32
                   os_score = 6
33
               if os.find("2.2") > -1 :
33
               if os.find("2.2") > -1 :
34
                   os_score = 7.5
34
                   os_score = 6.5
35
               if os.find("2.3") > -1 :
35
               if os.find("2.3") > -1 :
36
                   os_score = 8
36
                   os_score = 7
37
               if os.find("3.0") > -1 :
37
               if os.find("3.0") > -1 :
38
                   os_score = 9
38
                   os_score = 8
39
               if os.find("3.1") > -1 :
39
               if os.find("3.1") > -1 :
40
                   os_score = 9
40
                   os_score = 8
41
               if os.find("3.2") > -1 :
41
               if os.find("3.2") > -1 :
42
                   os_score = 9
42
                   os_score = 8
43
               if os.find("4.0") > -1 :
43
               if os.find("4.0") > -1 :
44
                   os_score = 9.5
44
                   os_score = 8.5
45
               if os.find("4.1") > -1 :
45
               if os.find("4.1") > -1 :
-
 
46
                   os_score = 9.0
-
 
47
               if os.find("4.2") > -1 :
46
                   os_score = 10
48
                   os_score = 9.0
47
               if os.find("4.3") > -1 :
49
               if os.find("4.3") > -1 :
48
                   os_score = 10
50
                   os_score = 10
49
            
51
            
50
           elif os.find("BlackBerry") > -1 :
52
           elif os.find("BlackBerry") > -1 :
51
               if os.find("OS") > -1 :
53
               if os.find("OS") > -1 :
52
                   os_score = 6.5
54
                   os_score = 6
53
               if os.find("5.0") > -1 :
55
               if os.find("5.0") > -1 :
54
                   os_score = 7
56
                   os_score = 6.5
55
               if os.find("6.0") > -1 :
57
               if os.find("6.0") > -1 :
56
                   os_score = 8
58
                   os_score = 7.5
57
               if os.find("7.0") > -1 :
59
               if os.find("7.0") > -1 :
58
                   os_score = 8.5
60
                   os_score = 8.0
59
               if os.find("7.1") > -1 :
61
               if os.find("7.1") > -1 :
60
                   os_score = 9
62
                   os_score = 8.5
61
               if os.find("Tablet OS") > -1 :
63
               if os.find("Tablet OS") > -1 :
62
                   os_score = 8
64
                   os_score = 8
63
               if os.find("10") > -1 :
65
               if os.find("10") > -1 :
64
                   os_score = 9.5
66
                   os_score = 9
65
                   
67
                   
66
           else :
68
           else :
67
               if os.find("Brew Mobile Platform") > -1 :
69
               if os.find("Brew Mobile Platform") > -1 :
68
                   os_score = 6
70
                   os_score = 6
69
           
71
           
Line 102... Line 104...
102
                   if os.find("Symbian Belle") > -1:
104
                   if os.find("Symbian Belle") > -1:
103
                       os_score = 8.5
105
                       os_score = 8.5
104
                
106
                
105
               if os.find("iOS") > -1 :
107
               if os.find("iOS") > -1 :
106
                   if os.find("4") > -1 :
108
                   if os.find("4") > -1 :
107
                       os_score = 9
109
                       os_score = 8
108
                   if os.find("5") > -1 :
110
                   if os.find("5") > -1 :
109
                       os_score = 9.5
111
                       os_score = 8.5
110
                   if os.find("6") > -1 :
112
                   if os.find("6") > -1 :
111
                       os_score = 10
113
                       os_score = 9
112
    
114
    
113
           if os_score == 0:
115
           if os_score == 0:
114
               os_score = 3
116
               os_score = 3
115
           print "Scores" + str(os_score)
117
           print "Scores" + str(os_score)
116
        score = (20*java_score + 20*security_score + 60*os_score)/100
118
        score = (10*java_score + 10*security_score + 80*os_score)/100
117
    return score
119
    return score