Jay-Rajput commited on
Commit
df237d4
Β·
1 Parent(s): 19558f9

Setup ipl 2025

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. 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
- # st.error(f"Your bid points 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
 
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:05 PM",
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"