A Channel can be tagged with a single Tag. The Channel can be moved into a Tag Directory according to the config.

This commit is contained in:
Roland 2024-08-06 18:13:21 -06:00
parent 2b8ef79561
commit 45167e4f32
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
39 changed files with 691 additions and 165 deletions

View file

@ -19,7 +19,7 @@ logger = logger.getChild(__name__)
def get_map_directory() -> Path:
map_directory = get_media_directory() / get_wrolpi_config().map_directory
map_directory = get_media_directory() / get_wrolpi_config().map_destination
if not map_directory.is_dir():
map_directory.mkdir(parents=True)
return map_directory

View file

@ -107,7 +107,7 @@ def test_get_custom_map_directory(test_directory, test_config):
# Default location.
assert lib.get_map_directory() == (test_directory / 'map')
get_wrolpi_config().map_directory = 'custom/deep/map/directory'
get_wrolpi_config().map_destination = 'custom/deep/map/directory'
assert lib.get_map_directory() == (test_directory / 'custom/deep/map/directory')
assert (test_directory / 'custom/deep/map/directory').is_dir()