From 9a4ab645dc68c0beb90705e7842d38a46d06e689 Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 27 Nov 2018 10:26:44 +0000 Subject: [PATCH] Clean up Prog slide names --- example_config.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/example_config.py b/example_config.py index 915a6bf..2057a24 100644 --- a/example_config.py +++ b/example_config.py @@ -130,7 +130,15 @@ def prog_transform(path): # Folien in Folien/* new_path = PFERD.move(path, ("Vorlesungsmaterial",), ("Folien",)) - if new_path is not None: return new_path + if new_path is not None: + if new_path.name == "00.1_Begruessung.pdf": + return PFERD.rename(new_path, "00-01_Begruessung.pdf") + if new_path.name == "00.2_Organisatorisches.pdf": + return PFERD.rename(new_path, "00-02_Organisatorisches.pdf") + if new_path.name == "01-01_ Einfache-Programme.pdf": + return PFERD.rename(new_path, "01-01_Einfache_Programme.pdf") + + return new_path return path