[F] Fix gentree

This commit is contained in:
2026-03-12 02:54:52 -04:00
parent 667e134d9c
commit 382949ff88
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import bot
import db
import gentree
src = Path(__file__).parent
src = Path(__file__).parent.parent
if __name__ == '__main__':
# Delete dist if already exists, and copy public to dist
+2 -2
View File
@@ -6,7 +6,7 @@ from hypy_utils import write
import db
src = Path(__file__).parent
src = Path(__file__).parent.parent
def indent(string: str, level: int):
@@ -28,7 +28,7 @@ def dfs(channel: str):
def gen_tree(d: Path = src / "public"):
of = dfs("hykilp")
of = dfs("azaneko")
write(d / "index.html", (src / "public/layout-full-tree.html").read_text('utf-8')
.replace("{{CONTENT}}", of))