[F] Fix gentree
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ import bot
|
|||||||
import db
|
import db
|
||||||
import gentree
|
import gentree
|
||||||
|
|
||||||
src = Path(__file__).parent
|
src = Path(__file__).parent.parent
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# Delete dist if already exists, and copy public to dist
|
# Delete dist if already exists, and copy public to dist
|
||||||
|
|||||||
+2
-2
@@ -6,7 +6,7 @@ from hypy_utils import write
|
|||||||
import db
|
import db
|
||||||
|
|
||||||
|
|
||||||
src = Path(__file__).parent
|
src = Path(__file__).parent.parent
|
||||||
|
|
||||||
|
|
||||||
def indent(string: str, level: int):
|
def indent(string: str, level: int):
|
||||||
@@ -28,7 +28,7 @@ def dfs(channel: str):
|
|||||||
|
|
||||||
|
|
||||||
def gen_tree(d: Path = src / "public"):
|
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')
|
write(d / "index.html", (src / "public/layout-full-tree.html").read_text('utf-8')
|
||||||
.replace("{{CONTENT}}", of))
|
.replace("{{CONTENT}}", of))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user