From 851b5b0d769c1f324f3ab87732ef81e56249bd8c Mon Sep 17 00:00:00 2001 From: Cedric Leporcq Date: Tue, 24 Aug 2021 08:23:30 +0200 Subject: [PATCH] fixup! Change file paths definitions and parsing --- ordigi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ordigi.py b/ordigi.py index cad0d3b..c8e2f7e 100755 --- a/ordigi.py +++ b/ordigi.py @@ -124,9 +124,9 @@ def _sort(debug, dry_run, destination, copy, exclude_regex, filter_by_ext, ignor # Initialize Db db = Db(destination) - if 'Directory' in conf and 'day_begins' in conf['Directory']: - config_directory = conf['Directory'] - day_begins = config_directory['day_begins'] + if 'Path' in conf and 'day_begins' in conf['Path']: + config_directory = conf['Path'] + day_begins = int(config_directory['day_begins']) else: day_begins = 0 filesystem = FileSystem(cache, day_begins, dry_run, exclude_regex_list,