fixup! Change file paths definitions and parsing

This commit is contained in:
Cédric Leporcq 2021-08-24 08:23:30 +02:00
parent f88255e3c5
commit 851b5b0d76
1 changed files with 3 additions and 3 deletions

View File

@ -124,9 +124,9 @@ def _sort(debug, dry_run, destination, copy, exclude_regex, filter_by_ext, ignor
# Initialize Db # Initialize Db
db = Db(destination) db = Db(destination)
if 'Directory' in conf and 'day_begins' in conf['Directory']: if 'Path' in conf and 'day_begins' in conf['Path']:
config_directory = conf['Directory'] config_directory = conf['Path']
day_begins = config_directory['day_begins'] day_begins = int(config_directory['day_begins'])
else: else:
day_begins = 0 day_begins = 0
filesystem = FileSystem(cache, day_begins, dry_run, exclude_regex_list, filesystem = FileSystem(cache, day_begins, dry_run, exclude_regex_list,