diff options
author | Rob Austein <sra@hactrn.net> | 2021-02-15 02:56:04 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2021-02-15 02:56:04 +0000 |
commit | b00a4c1cad77193243ca975f06945f45176423c8 (patch) | |
tree | a72025797db53b210186effdc921a75ef5ac2108 /extract.py | |
parent | 5c1f5611e2d35a27cde3207cf98ed1a8950fdc8b (diff) |
More cleanup, a few more attachment links
Diffstat (limited to 'extract.py')
-rwxr-xr-x | extract.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -101,7 +101,7 @@ def main(): for row in db.execute(wiki_query): if keep(row.name): slug = urllib.parse.quote(row.name, "") - print(slug, row.version) + #print(slug, row.version) with open("wiki/{}.trac".format(slug), "w") as f: f.write(row.text) md = markdown_header(row, first_published) + trac2md.WikiToMD(row.text, slug) @@ -110,7 +110,7 @@ def main(): for row in db.execute(attachment_query): src, dst = attachment_link(row) - print("{} => {}".format(dst, src)) + #print("{} => {}".format(dst, src)) if not os.path.isdir(os.path.dirname(dst)): os.makedirs(os.path.dirname(dst)) os.link(src, dst) |