fixed
This commit is contained in:
@ -14,7 +14,7 @@ class BaseSession:
|
|||||||
self.banned_dir.mkdir(parents=True, exist_ok=True)
|
self.banned_dir.mkdir(parents=True, exist_ok=True)
|
||||||
self.json_errors: set[Path] = set()
|
self.json_errors: set[Path] = set()
|
||||||
|
|
||||||
def iter_sessions(self) -> Generator[tuple[Path, Path, dict]]:
|
def iter_sessions(self) -> Generator:
|
||||||
"""
|
"""
|
||||||
Поиск сессий в base_dir
|
Поиск сессий в base_dir
|
||||||
Возвращает генератор с кортежами (item, json_path, json_data)
|
Возвращает генератор с кортежами (item, json_path, json_data)
|
||||||
|
|||||||
@ -47,7 +47,7 @@ class JsonConverter(BaseSession):
|
|||||||
json_write_sync(json_file, json_data)
|
json_write_sync(json_file, json_data)
|
||||||
return json_data
|
return json_data
|
||||||
|
|
||||||
def iter(self) -> Generator[tuple[Path, Path, dict]]:
|
def iter(self) -> Generator:
|
||||||
"""
|
"""
|
||||||
Поиск сессий в base_dir + конвертация сессии в json (string_session)
|
Поиск сессий в base_dir + конвертация сессии в json (string_session)
|
||||||
Возвращает генератор с кортежами (item, json_file, json_data)
|
Возвращает генератор с кортежами (item, json_file, json_data)
|
||||||
|
|||||||
Reference in New Issue
Block a user