Compare commits

..

No commits in common. "7ab32041c82bf244b4fd04252b6aec375b900f62" and "c2f516a281d5a2b9c8c2cc3d58dd055be7dde5ec" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View file

@ -7,7 +7,6 @@ from pathlib import Path
import os import os
from os.path import relpath, splitext from os.path import relpath, splitext
import re import re
import readline
import shutil import shutil
import sqlite3 import sqlite3
import textwrap import textwrap
@ -102,8 +101,8 @@ async def fetch_async(args):
cur = con.cursor() 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 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 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), PRIMARY KEY(tag, work))") 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 = args.destdir / 'site' / 'thumbnails'
thumbnails_dir.mkdir(parents=True, exist_ok=True) thumbnails_dir.mkdir(parents=True, exist_ok=True)

View file

@ -36,9 +36,7 @@
</tr> </tr>
{% endif %} {% endif %}
</table> </table>
{% if work['description'] %}
{{ work['description'] }} {{ work['description'] }}
{% endif %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}