mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 13:28:29 +00:00
fix plural name for output_dir
This commit is contained in:
parent
65afd405b1
commit
0db6437c4e
1 changed files with 3 additions and 3 deletions
|
@ -415,9 +415,9 @@ class ModelWithOutputDir(ABIDModel):
|
||||||
@property
|
@property
|
||||||
def output_dir_type(self) -> str:
|
def output_dir_type(self) -> str:
|
||||||
"""Get the model type parent directory name that holds this object's data e.g. 'archiveresults'"""
|
"""Get the model type parent directory name that holds this object's data e.g. 'archiveresults'"""
|
||||||
parent_dir = getattr(self, 'output_dir_parent', self._meta.model_name)
|
parent_dir = getattr(self, 'output_dir_parent', f'{self._meta.model_name}s')
|
||||||
assert parent_dir
|
assert len(parent_dir) > 2, f'output_dir_parent must be a non-empty string, got: "{parent_dir}"'
|
||||||
return f'{parent_dir}s' # e.g. archiveresults
|
return parent_dir
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def output_dir_name(self) -> str:
|
def output_dir_name(self) -> str:
|
||||||
|
|
Loading…
Add table
Reference in a new issue