Remove VM upload layer; keep file picker only
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
"""Чтение файлов сессии."""
|
||||
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
from .state import _lock, _sessions
|
||||
|
||||
|
||||
def get_files(sid: str) -> Optional[List[Tuple[str, bytes]]]:
|
||||
"""Вернуть файлы сессии или None, если сессия не найдена."""
|
||||
|
||||
with _lock:
|
||||
session = _sessions.get(sid)
|
||||
return list(session["files"]) if session else None
|
||||
|
||||
|
||||
def file_count(sid: str) -> int:
|
||||
"""Вернуть количество файлов в сессии."""
|
||||
|
||||
with _lock:
|
||||
session = _sessions.get(sid)
|
||||
return len(session["files"]) if session else 0
|
||||
Reference in New Issue
Block a user