Jay-Rajput commited on
Commit
a39b922
·
1 Parent(s): acc66ad

reducing points

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. leaders/users.json +54 -54
app.py CHANGED
@@ -461,8 +461,8 @@ def update_leaderboard_and_outcomes(match_id, winning_team, man_of_the_match, ou
461
  user_points -= 200 + bid_points
462
  result_indicator = "🔴" # Wrong Prediction
463
  else:
464
- # Deduct 1000 points for not submitting a prediction
465
- user_points -= 1000
466
  result_indicator = "⚪" # No Prediction
467
 
468
  # Ensure user_points is never negative
 
461
  user_points -= 200 + bid_points
462
  result_indicator = "🔴" # Wrong Prediction
463
  else:
464
+ # Deduct 200 points for not submitting a prediction
465
+ user_points -= 200
466
  result_indicator = "⚪" # No Prediction
467
 
468
  # Ensure user_points is never negative
leaders/users.json CHANGED
@@ -4,11 +4,11 @@
4
  "🔴",
5
  "🔴",
6
  "🔴",
7
- "",
8
- "🔴"
9
  ],
10
- "points": 2596,
11
- "wildcard": [
12
  0,
13
  0,
14
  0
@@ -22,7 +22,7 @@
22
  "⚪",
23
  "⚪"
24
  ],
25
- "points": 2000,
26
  "wildcard": [
27
  0,
28
  0,
@@ -37,7 +37,7 @@
37
  "⚪",
38
  "⚪"
39
  ],
40
- "points": 2000,
41
  "wildcard": [
42
  0,
43
  0,
@@ -47,12 +47,12 @@
47
  "Jay": {
48
  "last_5_results": [
49
  "🔴",
50
- "⚪",
51
  "🔴",
52
  "⚪",
53
- "🔴"
 
54
  ],
55
- "points": 5952,
56
  "wildcard": [
57
  0,
58
  0,
@@ -61,13 +61,13 @@
61
  },
62
  "Kishore": {
63
  "last_5_results": [
 
64
  "🟢",
65
  "🔴",
66
  "⚪",
67
- "⚪",
68
- "🔴"
69
  ],
70
- "points": 17400,
71
  "wildcard": [
72
  0,
73
  0,
@@ -78,11 +78,11 @@
78
  "last_5_results": [
79
  "🔴",
80
  "🔴",
81
- "🟢",
82
  "🔴",
83
- ""
 
84
  ],
85
- "points": 10800,
86
  "wildcard": [
87
  0,
88
  0,
@@ -92,12 +92,12 @@
92
  "Naveein": {
93
  "last_5_results": [
94
  "🟢",
95
- "⚪",
96
  "🟢",
97
  "⚪",
98
- "🔴"
 
99
  ],
100
- "points": 14100,
101
  "wildcard": [
102
  0,
103
  0,
@@ -112,7 +112,7 @@
112
  "⚪",
113
  "⚪"
114
  ],
115
- "points": 2000,
116
  "wildcard": [
117
  0,
118
  0,
@@ -121,13 +121,13 @@
121
  },
122
  "Praveen": {
123
  "last_5_results": [
 
124
  "⚪",
125
  "⚪",
126
  "⚪",
127
- "🔴",
128
- "⚪"
129
  ],
130
- "points": 7300,
131
  "wildcard": [
132
  0,
133
  0,
@@ -136,13 +136,13 @@
136
  },
137
  "Rakesh": {
138
  "last_5_results": [
 
139
  "⚪",
140
  "🔴",
141
  "🔴",
142
- "🔴",
143
- "⚪"
144
  ],
145
- "points": 2000,
146
  "wildcard": [
147
  0,
148
  0,
@@ -151,13 +151,13 @@
151
  },
152
  "Sai": {
153
  "last_5_results": [
 
154
  "🟢",
155
  "🟢",
156
  "🔴",
157
- "🔴",
158
- "🟢"
159
  ],
160
- "points": 14908,
161
  "wildcard": [
162
  0,
163
  0,
@@ -166,13 +166,13 @@
166
  },
167
  "Sunil": {
168
  "last_5_results": [
 
169
  "🔴",
170
  "🟢",
171
  "🔴",
172
- "⚪",
173
  "⚪"
174
  ],
175
- "points": 20477,
176
  "wildcard": [
177
  0,
178
  0,
@@ -181,13 +181,13 @@
181
  },
182
  "Vaibhav": {
183
  "last_5_results": [
 
184
  "⚪",
185
  "🔴",
186
  "⚪",
187
- "🔴",
188
- "🟢"
189
  ],
190
- "points": 12320,
191
  "wildcard": [
192
  0,
193
  0,
@@ -198,11 +198,11 @@
198
  "last_5_results": [
199
  "⚪",
200
  "⚪",
201
- "🔴",
202
  "⚪",
203
- "🔴"
 
204
  ],
205
- "points": 6800,
206
  "wildcard": [
207
  0,
208
  0,
@@ -214,10 +214,10 @@
214
  "⚪",
215
  "⚪",
216
  "⚪",
217
- "🔴",
218
- ""
219
  ],
220
- "points": 4100,
221
  "wildcard": [
222
  0,
223
  0,
@@ -232,7 +232,7 @@
232
  "⚪",
233
  "⚪"
234
  ],
235
- "points": 2000,
236
  "wildcard": [
237
  0,
238
  0,
@@ -241,13 +241,13 @@
241
  },
242
  "Biswabarenya": {
243
  "last_5_results": [
244
- "",
245
  "⚪",
246
  "⚪",
247
  "⚪",
248
  "⚪"
249
  ],
250
- "points": 2000,
251
  "wildcard": [
252
  0,
253
  0,
@@ -258,11 +258,11 @@
258
  "last_5_results": [
259
  "🟢",
260
  "🟢",
261
- "🔴",
262
  "🟢",
263
- "🔴"
 
264
  ],
265
- "points": 17700,
266
  "wildcard": [
267
  0,
268
  0,
@@ -275,9 +275,9 @@
275
  "⚪",
276
  "⚪",
277
  "⚪",
278
- "🔴"
279
  ],
280
- "points": 2000,
281
  "wildcard": [
282
  0,
283
  0,
@@ -292,7 +292,7 @@
292
  "⚪",
293
  "⚪"
294
  ],
295
- "points": 2000,
296
  "wildcard": [
297
  0,
298
  0,
@@ -304,10 +304,10 @@
304
  "🔴",
305
  "🔴",
306
  "🔴",
307
- "",
308
- "🔴"
309
  ],
310
- "points": 7200,
311
  "wildcard": [
312
  0,
313
  0,
@@ -316,13 +316,13 @@
316
  },
317
  "Satish": {
318
  "last_5_results": [
 
319
  "🟢",
320
  "🟢",
321
  "🔴",
322
- "🔴",
323
- "🟢"
324
  ],
325
- "points": 14900,
326
  "wildcard": [
327
  0,
328
  0,
 
4
  "🔴",
5
  "🔴",
6
  "🔴",
7
+ "🔴",
8
+ ""
9
  ],
10
+ "points": 2277,
11
+ "wildcard": [
12
  0,
13
  0,
14
  0
 
22
  "⚪",
23
  "⚪"
24
  ],
25
+ "points": 1000,
26
  "wildcard": [
27
  0,
28
  0,
 
37
  "⚪",
38
  "⚪"
39
  ],
40
+ "points": 1000,
41
  "wildcard": [
42
  0,
43
  0,
 
47
  "Jay": {
48
  "last_5_results": [
49
  "🔴",
 
50
  "🔴",
51
  "⚪",
52
+ "🔴",
53
+ "⚪"
54
  ],
55
+ "points": 5642,
56
  "wildcard": [
57
  0,
58
  0,
 
61
  },
62
  "Kishore": {
63
  "last_5_results": [
64
+ "🟢",
65
  "🟢",
66
  "🔴",
67
  "⚪",
68
+ "⚪"
 
69
  ],
70
+ "points": 19700,
71
  "wildcard": [
72
  0,
73
  0,
 
78
  "last_5_results": [
79
  "🔴",
80
  "🔴",
 
81
  "🔴",
82
+ "🟢",
83
+ "🔴"
84
  ],
85
+ "points": 10100,
86
  "wildcard": [
87
  0,
88
  0,
 
92
  "Naveein": {
93
  "last_5_results": [
94
  "🟢",
 
95
  "🟢",
96
  "⚪",
97
+ "🟢",
98
+ "⚪"
99
  ],
100
+ "points": 16700,
101
  "wildcard": [
102
  0,
103
  0,
 
112
  "⚪",
113
  "⚪"
114
  ],
115
+ "points": 1000,
116
  "wildcard": [
117
  0,
118
  0,
 
121
  },
122
  "Praveen": {
123
  "last_5_results": [
124
+ "🔴",
125
  "⚪",
126
  "⚪",
127
  "⚪",
128
+ "🔴"
 
129
  ],
130
+ "points": 6100,
131
  "wildcard": [
132
  0,
133
  0,
 
136
  },
137
  "Rakesh": {
138
  "last_5_results": [
139
+ "⚪",
140
  "⚪",
141
  "🔴",
142
  "🔴",
143
+ "🔴"
 
144
  ],
145
+ "points": 1000,
146
  "wildcard": [
147
  0,
148
  0,
 
151
  },
152
  "Sai": {
153
  "last_5_results": [
154
+ "🔴",
155
  "🟢",
156
  "🟢",
157
  "🔴",
158
+ "🔴"
 
159
  ],
160
+ "points": 14408,
161
  "wildcard": [
162
  0,
163
  0,
 
166
  },
167
  "Sunil": {
168
  "last_5_results": [
169
+ "⚪",
170
  "🔴",
171
  "🟢",
172
  "🔴",
 
173
  "⚪"
174
  ],
175
+ "points": 19477,
176
  "wildcard": [
177
  0,
178
  0,
 
181
  },
182
  "Vaibhav": {
183
  "last_5_results": [
184
+ "🟢",
185
  "⚪",
186
  "🔴",
187
  "⚪",
188
+ "🔴"
 
189
  ],
190
+ "points": 14640,
191
  "wildcard": [
192
  0,
193
  0,
 
198
  "last_5_results": [
199
  "⚪",
200
  "⚪",
 
201
  "⚪",
202
+ "🔴",
203
+ "⚪"
204
  ],
205
+ "points": 5800,
206
  "wildcard": [
207
  0,
208
  0,
 
214
  "⚪",
215
  "⚪",
216
  "⚪",
217
+ "",
218
+ "🔴"
219
  ],
220
+ "points": 3100,
221
  "wildcard": [
222
  0,
223
  0,
 
232
  "⚪",
233
  "⚪"
234
  ],
235
+ "points": 1000,
236
  "wildcard": [
237
  0,
238
  0,
 
241
  },
242
  "Biswabarenya": {
243
  "last_5_results": [
244
+ "🟢",
245
  "⚪",
246
  "⚪",
247
  "⚪",
248
  "⚪"
249
  ],
250
+ "points": 4200,
251
  "wildcard": [
252
  0,
253
  0,
 
258
  "last_5_results": [
259
  "🟢",
260
  "🟢",
 
261
  "🟢",
262
+ "🔴",
263
+ "🟢"
264
  ],
265
+ "points": 20000,
266
  "wildcard": [
267
  0,
268
  0,
 
275
  "⚪",
276
  "⚪",
277
  "⚪",
278
+ ""
279
  ],
280
+ "points": 1000,
281
  "wildcard": [
282
  0,
283
  0,
 
292
  "⚪",
293
  "⚪"
294
  ],
295
+ "points": 1000,
296
  "wildcard": [
297
  0,
298
  0,
 
304
  "🔴",
305
  "🔴",
306
  "🔴",
307
+ "🔴",
308
+ ""
309
  ],
310
+ "points": 6850,
311
  "wildcard": [
312
  0,
313
  0,
 
316
  },
317
  "Satish": {
318
  "last_5_results": [
319
+ "🔴",
320
  "🟢",
321
  "🟢",
322
  "🔴",
323
+ "🔴"
 
324
  ],
325
+ "points": 13700,
326
  "wildcard": [
327
  0,
328
  0,