Store generated booking RTF files in listbroni folder
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user