mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
Changing default Survival tag to Primitive.
This commit is contained in:
parent
4f4009f232
commit
fedbbe31d7
3 changed files with 6 additions and 5 deletions
|
|
@ -122,15 +122,15 @@ def upgrade():
|
|||
('Nuclear', '#0dff00'),
|
||||
('Pests', '#050068'),
|
||||
('Power', '#D837FF'),
|
||||
('Primitive', '#A18A62'),
|
||||
('Radio', '#134cbb'),
|
||||
('Schooling', '#6d752e'),
|
||||
('Security', '#333333'),
|
||||
('Shelter', '#625641'),
|
||||
('Social', '#490c73'),
|
||||
('Survival', '#A18A62'),
|
||||
('Tools', '#f0d730'),
|
||||
('Water', '#291BC2'),
|
||||
('WROL', '#4700ab')
|
||||
('WROL', '#4700ab'),
|
||||
('Water', '#291BC2')
|
||||
''')
|
||||
|
||||
session.execute('UPDATE wrolpi_flag SET refresh_complete = false')
|
||||
|
|
|
|||
|
|
@ -159,6 +159,7 @@ async def archive_modeler():
|
|||
|
||||
with slow_logger(1, f'Modeling archive took %(elapsed)s seconds: {file_group}', logger__=logger):
|
||||
if archive:
|
||||
archive: Archive
|
||||
try:
|
||||
archive_id = archive.id
|
||||
archive.validate()
|
||||
|
|
|
|||
|
|
@ -224,13 +224,13 @@ class Archive(Base, ModelHelper):
|
|||
self.domain_id = domain.id if domain else None
|
||||
|
||||
def apply_singlefile_title(self):
|
||||
"""Get the title from the Singlefile, if its missing."""
|
||||
"""Get the title from the Singlefile, if it's missing."""
|
||||
from modules.archive.lib import get_title_from_html
|
||||
if self.singlefile_path and not self.file_group.title:
|
||||
self.file_group.title = get_title_from_html(self.singlefile_path.read_text())
|
||||
|
||||
def validate(self):
|
||||
"""Fill in any missing data about this Archive from it's files."""
|
||||
"""Fill in any missing data about this Archive from its files."""
|
||||
try:
|
||||
self.read_readability_data()
|
||||
self.read_singlefile_data()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue