Trip suffix instead of md
1 files changed, 1 insertions(+), 1 deletions(-) M cogito2/database/article_factory.py
M cogito2/database/article_factory.py +1 -1
@@ 4,7 4,7 @@ from datetime import datetime def build_from_posix_file(posix_file: PosixPath, file_root_path=''): file_path = str(posix_file) - id = file_path.replace(file_root_path, '').replace('.md', '') + id = file_path.replace(file_root_path, '').replace(posix_file.suffix, '') return Article( id=id, content=posix_file.read_text(),