diff --git a/get_data.py b/get_data.py index 86990a7..c61a378 100644 --- a/get_data.py +++ b/get_data.py @@ -1329,6 +1329,7 @@ def excel_worker(): # ЧИСТИМ NaN и конвертируем df = df.fillna("") + df.columns = [c.replace("+", "_") for c in df.columns] data_json = df.to_dict(orient="records") # ключ в latest_data: excel_<имя_вкладки> @@ -3814,11 +3815,11 @@ async def last_5_games(): # убираем tzinfo, чтобы можно было сравнивать с now if dt.tzinfo is not None: dt = dt.replace(tzinfo=None) - # только будущие матчи if dt <= now: + print(dt, now) continue - + print(item) # определяем соперника и место if team_id == t1.get("teamId"): opp_name = t2.get("name", "")