Spaces:
Sleeping
Sleeping
jarajpu
commited on
Commit
·
99601a6
1
Parent(s):
17f96d3
Adding yesterday match
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ def is_submission_allowed(match_id):
|
|
| 130 |
# Get the current time in IST
|
| 131 |
current_datetime = datetime.now(tz_IST)
|
| 132 |
|
| 133 |
-
if current_datetime
|
| 134 |
return False
|
| 135 |
else:
|
| 136 |
return True
|
|
@@ -160,9 +160,9 @@ def submit_prediction(
|
|
| 160 |
return
|
| 161 |
|
| 162 |
# Check if prediction submission is allowed for the match
|
| 163 |
-
if not is_submission_allowed(match_id):
|
| 164 |
-
|
| 165 |
-
|
| 166 |
|
| 167 |
if bid_points > max_bid_points:
|
| 168 |
st.error(f"Your bid points exceed the 20% limit of your total points. Maximum allowed bid points: {max_bid_points}")
|
|
|
|
| 130 |
# Get the current time in IST
|
| 131 |
current_datetime = datetime.now(tz_IST)
|
| 132 |
|
| 133 |
+
if current_datetime > match_datetime:
|
| 134 |
return False
|
| 135 |
else:
|
| 136 |
return True
|
|
|
|
| 160 |
return
|
| 161 |
|
| 162 |
# Check if prediction submission is allowed for the match
|
| 163 |
+
# if not is_submission_allowed(match_id):
|
| 164 |
+
# st.error("Prediction submission time has passed. Predictions can't be submitted after match start.")
|
| 165 |
+
# return
|
| 166 |
|
| 167 |
if bid_points > max_bid_points:
|
| 168 |
st.error(f"Your bid points exceed the 20% limit of your total points. Maximum allowed bid points: {max_bid_points}")
|