From a317dd9d6aa00fb6f5daea5e70fe61b8796ab709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D1=80=D0=B8=D0=B9=20=D0=A7=D0=B5=D1=80=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Wed, 26 Nov 2025 14:09:21 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20SHORTMAPS=5FLO?= =?UTF-8?q?CK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- get_data.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/get_data.py b/get_data.py index 6347012..a315369 100644 --- a/get_data.py +++ b/get_data.py @@ -3635,12 +3635,12 @@ async def get_shotmap_image(player_id_shots: str): Отдаёт картинку карты бросков из оперативной памяти. player_id_shots должен совпадать с ключом в SHOTMAP_CACHE, например "23_shots". """ - async with SHOTMAPS_LOCK: - data = SHOTMAP_CACHE.get(player_id_shots) - if not data: - raise HTTPException(status_code=404, detail="Shotmap not found in memory") + # async with SHOTMAPS_LOCK: + data = SHOTMAP_CACHE.get(player_id_shots) + if not data: + raise HTTPException(status_code=404, detail="Shotmap not found in memory") - return Response(content=data, media_type="image/png") + return Response(content=data, media_type="image/png") @app.get("/last_5_games")