up new article et capture fusion

This commit is contained in:
Tykayn 2024-11-28 23:24:55 +01:00 committed by tykayn
parent 3c1ebbc735
commit dcc9d000fb
2 changed files with 101 additions and 1 deletions

View file

@ -21,9 +21,11 @@ date_string = now.strftime("%Y%m%d%H%M%S")
date_string_full = now.strftime("%Y-%m-%d %H:%M:%S")
# date_string_full = now.strftime("%Y%m%d%H%M%S")
slug = args.title.lower().replace(" ", "-")
slug = slug.replace("--", "-")
slug = slug.replace("--", "-")
file_abs_path = os.path.abspath(os.path.dirname(__file__))
filename = f"{file_abs_path}/sources/{args.blog_dir}/lang_{args.lang}/{date_string}_{args.blog_dir}_{slug}.org"
filename = f"{file_abs_path}/sources/{args.blog_dir}/lang_{args.lang}/{date_string}__{slug}.org"
import uuid