Adjust cover page: reduce blank lines, new date line, 'Transcribed by', updated disclaimer
Ruff / ruff (push) Has been cancelled
Mirror and run GitLab CI / build (push) Has been cancelled

This commit is contained in:
admin
2026-06-21 03:20:46 +00:00
parent f3392d80c6
commit fd7e9ad9d7
+12 -8
View File
@@ -76,8 +76,8 @@ def add_cover_page(
if not provided, uses current server time in SERVER_TIMEZONE.
"""
# 5 blank lines
_add_blank_lines(doc, 5)
# 3 blank lines
_add_blank_lines(doc, 3)
# 3 blank lines
_add_blank_lines(doc, 3)
@@ -85,25 +85,29 @@ def add_cover_page(
# Title in uppercase
_add_centered_paragraph(doc, text=title.upper().strip(), font_size=Pt(18), bold=True)
# Date of transcription (use provided or current server time)
# Date of transcription
if not date_str:
tz = _get_server_timezone()
now = datetime.now(tz)
date_str = now.strftime("%B %d, %Y")
_add_centered_paragraph(doc, text=date_str, font_size=Pt(14))
_add_centered_paragraph(doc, text=f"Transcript created on: {date_str}", font_size=Pt(14))
# Created by + organization
# Transcribed by + organization
org = (os.getenv("COVER_PAGE_ORGANIZATION") or "").strip()
if org:
_add_centered_paragraph(doc, text=f"Created by {org}", font_size=Pt(12))
_add_centered_paragraph(doc, text=f"Transcribed by {org}", font_size=Pt(12))
# 3 blank lines
_add_blank_lines(doc, 3)
# Disclaimer: only the word "Disclaimer" is underlined
# Disclaimer
disclaimer_title = "Disclaimer"
disclaimer_body = (
"This transcription and any summary derived therefrom may contain errors or inaccuracies."
"This transcription and any summary derived therefrom are created entirely by large language models. "
"Large language models are imperfect and may create errors or inaccuracies. "
"The following transcription and summary (if applicable) are designed to assist users. "
"They are not a conclusive record or summary of what transpired in an audio recording. "
"Use at your own risk."
)
# Underlined "Disclaimer" line