Site builder tolerates a repository without solutions yet
1 changed file+2−1
web/build.pymodified+2−1View file
@@ -39,7 +39,8 @@ def main():
3939 sol["fields"]["path"] = f"{rel_dir.as_posix()}/{sol['fields']['path']}"
4040 sol["fields"]["available"] = local.exists() and not is_lfs_pointer(local)
4141 entry["submissions"].append(sub)
42- shutil.copytree(ROOT / "solutions", out / "solutions")
42+ if (ROOT / "solutions").exists():
43+ shutil.copytree(ROOT / "solutions", out / "solutions")
4344 # experiments: wav files with a JSON note beside them, outside the challenges (strike schedules and the like)
4445 manifest["experiments"] = []
4546 if (ROOT / "experiments").exists():