Skip to content

Commit a87cdff

Browse files
committed
Fix index creation.
1 parent fc6cbbf commit a87cdff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

uc_python/collate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
print(f"no slides in {slides_dir}, skipping")
1919
continue
2020
slides_dir.rename(site / repo.name)
21-
index.write_text(f'<a href="/{repo.name}">{repo.name}</a>\n')
21+
with open(index, 'at') as f:
22+
f.write(f'<a href="/{repo.name}">{repo.name}</a>\n')

0 commit comments

Comments
 (0)