Store generated booking RTF files in listbroni folder

This commit is contained in:
OpenClaw Assistant
2026-02-21 20:14:15 +00:00
parent 894ef6dfc4
commit 8d6f17480b
2 changed files with 3 additions and 2 deletions

View File

@@ -164,7 +164,8 @@ def main():
jf.write(json.dumps(entry, ensure_ascii=False) + "\n")
# Генерируем клиентский лист брони из шаблона RTF
rtf_out = args.rtf_out.strip() if args.rtf_out else str(out.parent / f"booking_{booking_number}.rtf")
default_rtf_dir = out.parent / "listbroni"
rtf_out = args.rtf_out.strip() if args.rtf_out else str(default_rtf_dir / f"booking_{booking_number}.rtf")
try:
render_booking_rtf(Path(args.template), Path(rtf_out), entry)
except Exception: