Compare commits
3 commits
c2f516a281
...
7ab32041c8
Author | SHA1 | Date | |
---|---|---|---|
|
7ab32041c8 | ||
|
885b4884fd | ||
|
cf66c7db0a |
|
@ -7,6 +7,7 @@ from pathlib import Path
|
|||
import os
|
||||
from os.path import relpath, splitext
|
||||
import re
|
||||
import readline
|
||||
import shutil
|
||||
import sqlite3
|
||||
import textwrap
|
||||
|
@ -101,8 +102,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))")
|
||||
cur.execute("CREATE TABLE IF NOT EXISTS tags(tag TEXT, work TEXT, FOREIGN KEY(work) REFERENCES works(id))")
|
||||
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))")
|
||||
|
||||
thumbnails_dir = args.destdir / 'site' / 'thumbnails'
|
||||
thumbnails_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
|
|
@ -36,7 +36,9 @@
|
|||
</tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
{% if work['description'] %}
|
||||
{{ work['description'] }}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue