Skip to content

Commit

Permalink
fix: tilde decode path slug
Browse files Browse the repository at this point in the history
  • Loading branch information
jthodge committed Oct 15, 2023
1 parent 207293d commit 0c66a97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import sqlite_utils
from sqlite_utils.db import NotFoundError
import time
from datasette.utils import tilde_decode

root = pathlib.Path(__file__).parent.resolve()

Expand Down Expand Up @@ -53,7 +54,7 @@ def build_database(repo_path):
previous_body = None
previous_html = None
record = {
"path": path_slug,
"path": tilde_decode(path_slug),
"topic": path.split("/")[0],
"title": title,
"url": url,
Expand Down

0 comments on commit 0c66a97

Please sign in to comment.