поменял дату на сегодня. (было сегодня +1 день для теста)
This commit is contained in:
@@ -3136,8 +3136,8 @@ def resolve_period(ls: dict, game: dict) -> str:
|
|||||||
async def games_online():
|
async def games_online():
|
||||||
if not CALENDAR or "items" not in CALENDAR:
|
if not CALENDAR or "items" not in CALENDAR:
|
||||||
raise HTTPException(status_code=503, detail="calendar data not ready")
|
raise HTTPException(status_code=503, detail="calendar data not ready")
|
||||||
# today = datetime.now().date()
|
today = datetime.now().date()
|
||||||
today = (datetime.now() + timedelta(days=1)).date()
|
# today = (datetime.now() + timedelta(days=1)).date()
|
||||||
todays_games = []
|
todays_games = []
|
||||||
final_states = {"result", "resultconfirmed", "finished"}
|
final_states = {"result", "resultconfirmed", "finished"}
|
||||||
for item in CALENDAR["items"]:
|
for item in CALENDAR["items"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user