Jay-Rajput commited on
Commit
24ce55b
Β·
1 Parent(s): 03a4400
Files changed (2) hide show
  1. app.py +3 -2
  2. leaders/users.json +65 -65
app.py CHANGED
@@ -312,10 +312,11 @@ def display_leaderboard():
312
  points = points_dict.get("points", 0)
313
  last_5_results = " ".join(points_dict.get("last_5_results", ["βšͺ"] * 5)) # Default: 5 white circles
314
  bonus = points_dict.get("redistributed_bonus", 0)
 
315
  users_data.append({
316
  'User': user,
317
  'Points': points,
318
- 'Redistribution Bonus': bonus,
319
  'Last 5 Bids': last_5_results
320
  })
321
  else:
@@ -330,7 +331,7 @@ def display_leaderboard():
330
  leaderboard['Rank'] = range(1, len(leaderboard) + 1)
331
 
332
  # Select and order the columns for display
333
- leaderboard = leaderboard[['Rank', 'User', 'Points', 'Redistribution Bonus', 'Last 5 Bids']]
334
 
335
  st.dataframe(leaderboard, hide_index=True)
336
  except Exception as e:
 
312
  points = points_dict.get("points", 0)
313
  last_5_results = " ".join(points_dict.get("last_5_results", ["βšͺ"] * 5)) # Default: 5 white circles
314
  bonus = points_dict.get("redistributed_bonus", 0)
315
+ bonus_display = f"+{bonus}" if bonus > 0 else ""
316
  users_data.append({
317
  'User': user,
318
  'Points': points,
319
+ 'TOLBOG Wallet': bonus_display,
320
  'Last 5 Bids': last_5_results
321
  })
322
  else:
 
331
  leaderboard['Rank'] = range(1, len(leaderboard) + 1)
332
 
333
  # Select and order the columns for display
334
+ leaderboard = leaderboard[['Rank', 'User', 'Points', 'TOLBOG Wallet', 'Last 5 Bids']]
335
 
336
  st.dataframe(leaderboard, hide_index=True)
337
  except Exception as e:
leaders/users.json CHANGED
@@ -1,14 +1,14 @@
1
  {
2
  "Arpit": {
3
  "last_5_results": [
 
4
  "🟒",
5
  "🟒",
6
  "πŸ”΄",
7
- "πŸ”΄",
8
- "🟒"
9
  ],
10
- "points": 12547,
11
- "redistributed_bonus": 0,
12
  "wildcard": [
13
  0,
14
  0,
@@ -23,8 +23,8 @@
23
  "βšͺ",
24
  "βšͺ"
25
  ],
26
- "points": 1200,
27
- "redistributed_bonus": 0,
28
  "wildcard": [
29
  0,
30
  0,
@@ -36,11 +36,11 @@
36
  "πŸ”΄",
37
  "πŸ”΄",
38
  "πŸ”΄",
39
- "βšͺ",
40
  "βšͺ"
41
  ],
42
- "points": 1600,
43
- "redistributed_bonus": 0,
44
  "wildcard": [
45
  0,
46
  0,
@@ -49,14 +49,14 @@
49
  },
50
  "Jay": {
51
  "last_5_results": [
 
52
  "🟒",
53
  "🟒",
54
  "πŸ”΄",
55
- "πŸ”΄",
56
- "🟒"
57
  ],
58
- "points": 21142,
59
- "redistributed_bonus": 0,
60
  "wildcard": [
61
  0,
62
  0,
@@ -68,10 +68,10 @@
68
  "🟒",
69
  "🟒",
70
  "🟒",
71
- "βšͺ",
72
- "🟒"
73
  ],
74
- "points": 34800,
75
  "redistributed_bonus": 0,
76
  "wildcard": [
77
  0,
@@ -81,14 +81,14 @@
81
  },
82
  "Megha": {
83
  "last_5_results": [
84
- "🟒",
85
  "βšͺ",
86
  "🟒",
87
  "βšͺ",
 
88
  "βšͺ"
89
  ],
90
- "points": 21600,
91
- "redistributed_bonus": 0,
92
  "wildcard": [
93
  0,
94
  0,
@@ -103,7 +103,7 @@
103
  "🟒",
104
  "🟒"
105
  ],
106
- "points": 36000,
107
  "redistributed_bonus": 0,
108
  "wildcard": [
109
  0,
@@ -119,8 +119,8 @@
119
  "βšͺ",
120
  "βšͺ"
121
  ],
122
- "points": 1200,
123
- "redistributed_bonus": 0,
124
  "wildcard": [
125
  0,
126
  0,
@@ -135,8 +135,8 @@
135
  "βšͺ",
136
  "βšͺ"
137
  ],
138
- "points": 8848,
139
- "redistributed_bonus": 0,
140
  "wildcard": [
141
  0,
142
  0,
@@ -146,13 +146,13 @@
146
  "Rakesh": {
147
  "last_5_results": [
148
  "🟒",
149
- "πŸ”΄",
150
  "🟒",
 
151
  "🟒",
152
  "🟒"
153
  ],
154
- "points": 20080,
155
- "redistributed_bonus": 0,
156
  "wildcard": [
157
  0,
158
  0,
@@ -161,13 +161,13 @@
161
  },
162
  "Sai": {
163
  "last_5_results": [
 
164
  "🟒",
165
  "🟒",
166
  "πŸ”΄",
167
- "🟒",
168
  "🟒"
169
  ],
170
- "points": 39508,
171
  "redistributed_bonus": 0,
172
  "wildcard": [
173
  0,
@@ -180,11 +180,11 @@
180
  "πŸ”΄",
181
  "πŸ”΄",
182
  "πŸ”΄",
183
- "🟒",
184
  "🟒"
185
  ],
186
- "points": 28606,
187
- "redistributed_bonus": 0,
188
  "wildcard": [
189
  0,
190
  0,
@@ -193,14 +193,14 @@
193
  },
194
  "Vaibhav": {
195
  "last_5_results": [
 
196
  "βšͺ",
197
  "βšͺ",
198
  "🟒",
199
- "πŸ”΄",
200
- "🟒"
201
  ],
202
- "points": 27500,
203
- "redistributed_bonus": 0,
204
  "wildcard": [
205
  0,
206
  0,
@@ -215,8 +215,8 @@
215
  "βšͺ",
216
  "βšͺ"
217
  ],
218
- "points": 4980,
219
- "redistributed_bonus": 0,
220
  "wildcard": [
221
  0,
222
  0,
@@ -226,13 +226,13 @@
226
  "Anandh": {
227
  "last_5_results": [
228
  "🟒",
229
- "πŸ”΄",
230
  "πŸ”΄",
231
  "πŸ”΄",
232
  "πŸ”΄"
233
  ],
234
- "points": 4388,
235
- "redistributed_bonus": 0,
236
  "wildcard": [
237
  0,
238
  0,
@@ -244,11 +244,11 @@
244
  "βšͺ",
245
  "βšͺ",
246
  "βšͺ",
247
- "🟒",
248
- "πŸ”΄"
249
  ],
250
- "points": 5600,
251
- "redistributed_bonus": 0,
252
  "wildcard": [
253
  0,
254
  0,
@@ -257,14 +257,14 @@
257
  },
258
  "Biswabarenya": {
259
  "last_5_results": [
 
260
  "βšͺ",
261
  "🟒",
262
  "πŸ”΄",
263
- "βšͺ",
264
  "βšͺ"
265
  ],
266
- "points": 6550,
267
- "redistributed_bonus": 0,
268
  "wildcard": [
269
  0,
270
  0,
@@ -273,13 +273,13 @@
273
  },
274
  "Naitik": {
275
  "last_5_results": [
 
276
  "🟒",
277
  "🟒",
278
  "πŸ”΄",
279
- "🟒",
280
- "πŸ”΄"
281
  ],
282
- "points": 41600,
283
  "redistributed_bonus": 0,
284
  "wildcard": [
285
  0,
@@ -292,11 +292,11 @@
292
  "βšͺ",
293
  "βšͺ",
294
  "βšͺ",
295
- "πŸ”΄",
296
- "🟒"
297
  ],
298
- "points": 12360,
299
- "redistributed_bonus": 0,
300
  "wildcard": [
301
  0,
302
  0,
@@ -307,12 +307,12 @@
307
  "last_5_results": [
308
  "βšͺ",
309
  "βšͺ",
310
- "πŸ”΄",
311
  "βšͺ",
 
312
  "βšͺ"
313
  ],
314
- "points": 1000,
315
- "redistributed_bonus": 0,
316
  "wildcard": [
317
  0,
318
  0,
@@ -321,13 +321,13 @@
321
  },
322
  "Priyavrat Mohan": {
323
  "last_5_results": [
 
324
  "🟒",
325
  "🟒",
326
  "πŸ”΄",
327
- "πŸ”΄",
328
- "🟒"
329
  ],
330
- "points": 32925,
331
  "redistributed_bonus": 0,
332
  "wildcard": [
333
  0,
@@ -337,14 +337,14 @@
337
  },
338
  "Satish": {
339
  "last_5_results": [
 
340
  "πŸ”΄",
341
  "πŸ”΄",
342
  "πŸ”΄",
343
- "🟒",
344
- "βšͺ"
345
  ],
346
- "points": 28600,
347
- "redistributed_bonus": 0,
348
  "wildcard": [
349
  0,
350
  0,
 
1
  {
2
  "Arpit": {
3
  "last_5_results": [
4
+ "πŸ”΄",
5
  "🟒",
6
  "🟒",
7
  "πŸ”΄",
8
+ "πŸ”΄"
 
9
  ],
10
+ "points": 12429,
11
+ "redistributed_bonus": 182,
12
  "wildcard": [
13
  0,
14
  0,
 
23
  "βšͺ",
24
  "βšͺ"
25
  ],
26
+ "points": 1014,
27
+ "redistributed_bonus": 14,
28
  "wildcard": [
29
  0,
30
  0,
 
36
  "πŸ”΄",
37
  "πŸ”΄",
38
  "πŸ”΄",
39
+ "πŸ”΄",
40
  "βšͺ"
41
  ],
42
+ "points": 1217,
43
+ "redistributed_bonus": 17,
44
  "wildcard": [
45
  0,
46
  0,
 
49
  },
50
  "Jay": {
51
  "last_5_results": [
52
+ "🟒",
53
  "🟒",
54
  "🟒",
55
  "πŸ”΄",
56
+ "πŸ”΄"
 
57
  ],
58
+ "points": 23588,
59
+ "redistributed_bonus": 346,
60
  "wildcard": [
61
  0,
62
  0,
 
68
  "🟒",
69
  "🟒",
70
  "🟒",
71
+ "🟒",
72
+ "βšͺ"
73
  ],
74
+ "points": 37300,
75
  "redistributed_bonus": 0,
76
  "wildcard": [
77
  0,
 
81
  },
82
  "Megha": {
83
  "last_5_results": [
 
84
  "βšͺ",
85
  "🟒",
86
  "βšͺ",
87
+ "🟒",
88
  "βšͺ"
89
  ],
90
+ "points": 21718,
91
+ "redistributed_bonus": 318,
92
  "wildcard": [
93
  0,
94
  0,
 
103
  "🟒",
104
  "🟒"
105
  ],
106
+ "points": 38800,
107
  "redistributed_bonus": 0,
108
  "wildcard": [
109
  0,
 
119
  "βšͺ",
120
  "βšͺ"
121
  ],
122
+ "points": 1014,
123
+ "redistributed_bonus": 14,
124
  "wildcard": [
125
  0,
126
  0,
 
135
  "βšͺ",
136
  "βšͺ"
137
  ],
138
+ "points": 8776,
139
+ "redistributed_bonus": 128,
140
  "wildcard": [
141
  0,
142
  0,
 
146
  "Rakesh": {
147
  "last_5_results": [
148
  "🟒",
 
149
  "🟒",
150
+ "πŸ”΄",
151
  "🟒",
152
  "🟒"
153
  ],
154
+ "points": 22459,
155
+ "redistributed_bonus": 329,
156
  "wildcard": [
157
  0,
158
  0,
 
161
  },
162
  "Sai": {
163
  "last_5_results": [
164
+ "πŸ”΄",
165
  "🟒",
166
  "🟒",
167
  "πŸ”΄",
 
168
  "🟒"
169
  ],
170
+ "points": 38808,
171
  "redistributed_bonus": 0,
172
  "wildcard": [
173
  0,
 
180
  "πŸ”΄",
181
  "πŸ”΄",
182
  "πŸ”΄",
183
+ "πŸ”΄",
184
  "🟒"
185
  ],
186
+ "points": 23022,
187
+ "redistributed_bonus": 337,
188
  "wildcard": [
189
  0,
190
  0,
 
193
  },
194
  "Vaibhav": {
195
  "last_5_results": [
196
+ "πŸ”΄",
197
  "βšͺ",
198
  "βšͺ",
199
  "🟒",
200
+ "πŸ”΄"
 
201
  ],
202
+ "points": 27605,
203
+ "redistributed_bonus": 405,
204
  "wildcard": [
205
  0,
206
  0,
 
215
  "βšͺ",
216
  "βšͺ"
217
  ],
218
+ "points": 4851,
219
+ "redistributed_bonus": 71,
220
  "wildcard": [
221
  0,
222
  0,
 
226
  "Anandh": {
227
  "last_5_results": [
228
  "🟒",
229
+ "🟒",
230
  "πŸ”΄",
231
  "πŸ”΄",
232
  "πŸ”΄"
233
  ],
234
+ "points": 6584,
235
+ "redistributed_bonus": 96,
236
  "wildcard": [
237
  0,
238
  0,
 
244
  "βšͺ",
245
  "βšͺ",
246
  "βšͺ",
247
+ "βšͺ",
248
+ "🟒"
249
  ],
250
+ "points": 5480,
251
+ "redistributed_bonus": 80,
252
  "wildcard": [
253
  0,
254
  0,
 
257
  },
258
  "Biswabarenya": {
259
  "last_5_results": [
260
+ "βšͺ",
261
  "βšͺ",
262
  "🟒",
263
  "πŸ”΄",
 
264
  "βšͺ"
265
  ],
266
+ "points": 6444,
267
+ "redistributed_bonus": 94,
268
  "wildcard": [
269
  0,
270
  0,
 
273
  },
274
  "Naitik": {
275
  "last_5_results": [
276
+ "πŸ”΄",
277
  "🟒",
278
  "🟒",
279
  "πŸ”΄",
280
+ "🟒"
 
281
  ],
282
+ "points": 39900,
283
  "redistributed_bonus": 0,
284
  "wildcard": [
285
  0,
 
292
  "βšͺ",
293
  "βšͺ",
294
  "βšͺ",
295
+ "βšͺ",
296
+ "πŸ”΄"
297
  ],
298
+ "points": 12341,
299
+ "redistributed_bonus": 181,
300
  "wildcard": [
301
  0,
302
  0,
 
307
  "last_5_results": [
308
  "βšͺ",
309
  "βšͺ",
 
310
  "βšͺ",
311
+ "πŸ”΄",
312
  "βšͺ"
313
  ],
314
+ "points": 811,
315
+ "redistributed_bonus": 11,
316
  "wildcard": [
317
  0,
318
  0,
 
321
  },
322
  "Priyavrat Mohan": {
323
  "last_5_results": [
324
+ "πŸ”΄",
325
  "🟒",
326
  "🟒",
327
  "πŸ”΄",
328
+ "πŸ”΄"
 
329
  ],
330
+ "points": 32175,
331
  "redistributed_bonus": 0,
332
  "wildcard": [
333
  0,
 
337
  },
338
  "Satish": {
339
  "last_5_results": [
340
+ "🟒",
341
  "πŸ”΄",
342
  "πŸ”΄",
343
  "πŸ”΄",
344
+ "🟒"
 
345
  ],
346
+ "points": 35327,
347
+ "redistributed_bonus": 527,
348
  "wildcard": [
349
  0,
350
  0,