Spaces:
Sleeping
Sleeping
Commit
Β·
df237d4
1
Parent(s):
19558f9
Setup ipl 2025
Browse files- app.py +3 -3
- matches.json +1 -1
app.py
CHANGED
|
@@ -145,9 +145,9 @@ def submit_prediction(
|
|
| 145 |
st.error("Prediction submission time has passed. Predictions can't be submitted after match start.")
|
| 146 |
return
|
| 147 |
|
| 148 |
-
if bid_points > max_bid_points:
|
| 149 |
-
|
| 150 |
-
st.error(f"Oops! π Looks like you're going overboard with your bid points! Your bid points cannot exceed your total points. Maximum allowed bid points: {max_bid_points} π±")
|
| 151 |
return
|
| 152 |
|
| 153 |
prediction_id = uuid.uuid4().hex
|
|
|
|
| 145 |
st.error("Prediction submission time has passed. Predictions can't be submitted after match start.")
|
| 146 |
return
|
| 147 |
|
| 148 |
+
if bid_points > max_bid_points or bid_points < 100:
|
| 149 |
+
st.error(f"Oops, Invalid bid! π You must bid at least 100 points and not exceed the 20% limit of your total points. Maximum allowed bid points: {max_bid_points}.")
|
| 150 |
+
# st.error(f"Oops! π Looks like you're going overboard with your bid points! Your bid points cannot exceed your total points. Maximum allowed bid points: {max_bid_points} π±")
|
| 151 |
return
|
| 152 |
|
| 153 |
prediction_id = uuid.uuid4().hex
|
matches.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
{
|
| 3 |
"match_id": "20250320_1",
|
| 4 |
"date": "2025-03-20",
|
| 5 |
-
"time": "4:
|
| 6 |
"teams": [
|
| 7 |
"DIS",
|
| 8 |
"DIF"
|
|
|
|
| 2 |
{
|
| 3 |
"match_id": "20250320_1",
|
| 4 |
"date": "2025-03-20",
|
| 5 |
+
"time": "4:10 PM",
|
| 6 |
"teams": [
|
| 7 |
"DIS",
|
| 8 |
"DIF"
|