убрал SHORTMAPS_LOCK
This commit is contained in:
@@ -3635,7 +3635,7 @@ async def get_shotmap_image(player_id_shots: str):
|
||||
Отдаёт картинку карты бросков из оперативной памяти.
|
||||
player_id_shots должен совпадать с ключом в SHOTMAP_CACHE, например "23_shots".
|
||||
"""
|
||||
async with SHOTMAPS_LOCK:
|
||||
# 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")
|
||||
|
||||
Reference in New Issue
Block a user