Improve LLM and CSV processing
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -5,8 +5,8 @@ from typing import Optional
|
||||
from .state import _sessions, _lock
|
||||
|
||||
|
||||
def store_csv(sid: str, csv_str: str) -> bool:
|
||||
"""Сохранить CSV с таблицей замен.
|
||||
def store_csv(sid: str, csv_str: Optional[str]) -> bool:
|
||||
"""Сохранить mapping CSV или инвалидировать его, передав None.
|
||||
|
||||
Returns:
|
||||
True если сохранено, False если сессии нет.
|
||||
|
||||
@@ -5,8 +5,8 @@ from typing import Optional
|
||||
from .state import _sessions, _lock
|
||||
|
||||
|
||||
def store_result(sid: str, zip_data: bytes) -> bool:
|
||||
"""Сохранить результат обработки (ZIP-архив).
|
||||
def store_result(sid: str, zip_data: Optional[bytes]) -> bool:
|
||||
"""Сохранить ZIP-результат или инвалидировать его, передав None.
|
||||
|
||||
Returns:
|
||||
True если сохранено, False если сессии нет.
|
||||
|
||||
Reference in New Issue
Block a user