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")