[templates, config] Add SITE_FLAVOR for selecting nyaa/sukebei, update templates

By default TABLE_PREFIX is derived from flavor.
Added back Date column, adjusted column widths
This commit is contained in:
TheAMM
2017-05-13 02:23:02 +03:00
parent 1eaaf08e8a
commit 517d3e8e32
5 changed files with 82 additions and 146 deletions

View File

@@ -7,7 +7,7 @@ db.create_all()
# Insert categories
if app.config['TABLE_PREFIX'] == 'nyaa_':
if app.config['SITE_FLAVOR'] == 'nyaa':
CATEGORIES = [
('Anime', ['Anime Music Video', 'English-translated', 'Non-English-translated', 'Raw']),
('Audio', ['Lossless', 'Lossy']),
@@ -16,7 +16,7 @@ if app.config['TABLE_PREFIX'] == 'nyaa_':
('Pictures', ['Graphics', 'Photos']),
('Software', ['Applications', 'Games']),
]
elif app.config['TABLE_PREFIX'] == 'sukebei_':
elif app.config['SITE_FLAVOR'] == 'sukebei':
CATEGORIES = [
('Art', ['Anime', 'Doujinshi', 'Games', 'Manga', 'Pictures']),
('Real Life', ['Photobooks / Pictures', 'Videos']),