fix sql link parsing and writing

This commit is contained in:
Nick Sweeting 2019-04-24 04:06:54 -04:00
parent ce2d18644b
commit 0b27f33d2e
3 changed files with 6 additions and 4 deletions

View file

@ -15,7 +15,7 @@ def parse_sql_main_index(out_dir: str=OUTPUT_DIR) -> Iterator[Link]:
from core.models import Page
return (
page.as_json(*Page.keys)
Link.from_json(page.as_json(*Page.keys))
for page in Page.objects.all()
)