mirror of
				https://github.com/Garmelon/PFERD.git
				synced 2025-10-31 12:52:43 +01:00 
			
		
		
		
	Adapt to different LA1 folder structure
This commit is contained in:
		| @@ -113,12 +113,19 @@ def la1_transform(path): | |||||||
| 		return new_path | 		return new_path | ||||||
|  |  | ||||||
| 	# Übungs-Gedöns in Übung/* | 	# Übungs-Gedöns in Übung/* | ||||||
| 	if path.match("Informatikervorlesung/Übung_*"): | 	new_path = PFERD.move(path, ("Informatikervorlesung", "Übungsfolien"), ("Übung",)) | ||||||
| 		return pathlib.PurePath("Übung", *path.parts[1:]) | 	if new_path is not None: | ||||||
|  | 		return new_path | ||||||
|  |  | ||||||
| 	# Vorlesungsfolien-Gedöns in Folien/* | 	# Vorlesungsfolien-Gedöns in Folien/* | ||||||
| 	new_path = PFERD.move(path, ("Informatikervorlesung",), ("Folien",)) | 	new_path = PFERD.move(path, ("Informatikervorlesung", "Folien.Notizen"), ("Folien",)) | ||||||
| 	if new_path is not None: return new_path | 	if new_path is not None: | ||||||
|  | 		return new_path | ||||||
|  |  | ||||||
|  | 	# Rest in Hauptverzeichnis | ||||||
|  | 	new_path = PFERD.move(path, ("Informatikervorlesung",), ()) | ||||||
|  | 	if new_path is not None: | ||||||
|  | 		return new_path | ||||||
|  |  | ||||||
| 	return path | 	return path | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Joscha
					Joscha