1
0
mirror of https://github.com/240596448/onec_codetemplate_parser.git synced 2025-11-23 21:34:39 +02:00
This commit is contained in:
Vladimir Nadulich
2025-11-08 00:06:07 +03:00
parent 5a09e8cddb
commit 350e2e8280
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class LeafRepository():
def save(self, path: str, position: int):
"""Записывает элемент в файл"""
safe_name = safe_filename(self.name)
file_name = f"{position:03d}.0_{safe_name}.txt"
file_name = f"{position:03d}.0_{safe_name}.ini"
leaf_path = Path(path) / file_name
self.path = str(leaf_path)
@@ -56,7 +56,7 @@ class GroupRepository():
@staticmethod
def metafile() -> str:
"""Возвращает имя служебного файла с данными группы"""
return ".group_data"
return ".group_data.ini"
def group_data(self) -> Path:
"""Возвращает путь к файлу с данными группы"""
return Path(self.path) / self.metafile()

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "onec_codetemplate_parser"
version = "1.0.1"
version = "1.0.2"
dependencies = [
"typer>=0.20.0"
]