Skip to content
Snippets Groups Projects
Verified Commit bd24ba1e authored by Joschua "λ" Kesper's avatar Joschua "λ" Kesper
Browse files

Changed `title` to `label` for old transcripts

parent 43cf13c1
Branches
No related tags found
1 merge request!51Fix title
......@@ -184,7 +184,8 @@ interface TranscriptMeta {
date: string;
start: string;
end: string;
title?: string;
title: string;
label?: string;
head: string;
author: string;
present: string[];
......
......@@ -198,7 +198,7 @@ function getTranscriptFilename(t: FinishedTranscriptMeta) {
"fsr-sitzung",
typeof t.number === "number" ? `${t.number}`.padStart(3, '0') : null,
`${t.date}`,
t.title && t.spec_version === -1 ? `${t.title.toLowerCase()}` : null,
t.label && t.spec_version === -1 ? `${t.label.toLowerCase()}` : null,
].filter(x => x !== null).join("-")
+ (t.spec_version === -1 ? ".pdf" : "");
}
......@@ -206,7 +206,7 @@ function getTranscriptFilename(t: FinishedTranscriptMeta) {
function getTranscriptTitle(t: FinishedTranscriptMeta) {
const interjection =
(t.number ? ` ${t.number}` : "")
+ (t.title ? ` ${t.title}` : "");
+ (t.label ? ` ${t.label}` : "");
return `FSR-Sitzung${interjection} (${t.date})`;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment