diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index 02371dc..3d313b5 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -7,7 +7,6 @@ from pathlib import Path import os from os.path import relpath, splitext import re -import readline import shutil import sqlite3 import textwrap @@ -102,8 +101,8 @@ async def fetch_async(args): cur = con.cursor() cur.execute("CREATE TABLE IF NOT EXISTS works(id TEXT PRIMARY KEY, title TEXT, circle TEXT, date TEXT, description TEXT, series TEXT, virtual INT)") - cur.execute("CREATE TABLE IF NOT EXISTS authors(author TEXT, work TEXT, FOREIGN KEY(work) REFERENCES works(id), PRIMARY KEY(author, work))") - cur.execute("CREATE TABLE IF NOT EXISTS tags(tag TEXT, work TEXT, FOREIGN KEY(work) REFERENCES works(id), PRIMARY KEY(tag, work))") + cur.execute("CREATE TABLE IF NOT EXISTS authors(author TEXT, work TEXT, FOREIGN KEY(work) REFERENCES works(id))") + cur.execute("CREATE TABLE IF NOT EXISTS tags(tag TEXT, work TEXT, FOREIGN KEY(work) REFERENCES works(id))") thumbnails_dir = args.destdir / 'site' / 'thumbnails' thumbnails_dir.mkdir(parents=True, exist_ok=True) diff --git a/dlibrary/templates/work.html b/dlibrary/templates/work.html index c2860fa..2bedfb2 100644 --- a/dlibrary/templates/work.html +++ b/dlibrary/templates/work.html @@ -36,9 +36,7 @@ {% endif %} - {% if work['description'] %} {{ work['description'] }} - {% endif %} {% endblock %}