move config loading into function for easier runtime reloading

This commit is contained in:
Nick Sweeting
2019-04-25 19:00:25 -04:00
parent d248684839
commit df4307c4ff
2 changed files with 11 additions and 7 deletions

View File

@@ -112,6 +112,8 @@ def main(args=None):
if command.sort:
links = sorted(links, key=lambda link: getattr(link, command.sort))
links = list(links)
if command.status == 'indexed':
folders = get_indexed_folders(links, out_dir=OUTPUT_DIR)
elif command.status == 'archived':