From e544ef9621194e8c26aa691a49179f423297682d Mon Sep 17 00:00:00 2001 From: Rehan Fazal Date: Sat, 31 Aug 2024 14:52:13 +0200 Subject: [PATCH] updating the settings to DIR to check the speed of execution --- dropbox_utils.py | 2 +- settings.ini | 2 +- utils/file_operations.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dropbox_utils.py b/dropbox_utils.py index 290edd6..58ad688 100644 --- a/dropbox_utils.py +++ b/dropbox_utils.py @@ -100,7 +100,7 @@ def refresh_dropbox_token(): dropbox_folder = config_parser.get('Settings', 'dropbox_directory', fallback='/reddit') # Fetch the check_type from the settings.ini file with a fallback -check_type = config_parser.get('Settings', 'check_type', fallback='LOG').upper() +check_type = config_parser.get('Settings', 'check_type', fallback='DIR').upper() def sanitize_filename(filename): """Sanitize the filename to be Dropbox-compatible.""" diff --git a/settings.ini b/settings.ini index ea1d736..b6a0e61 100644 --- a/settings.ini +++ b/settings.ini @@ -2,7 +2,7 @@ save_directory = reddit/ dropbox_directory = /reddit save_type = ALL -check_type = LOG +check_type = DIR [Configuration] client_id = None diff --git a/utils/file_operations.py b/utils/file_operations.py index 23be5ef..242bfdb 100644 --- a/utils/file_operations.py +++ b/utils/file_operations.py @@ -17,7 +17,7 @@ config = configparser.ConfigParser() config.read(config_path) save_type = config.get('Settings', 'save_type', fallback='ALL').upper() -check_type = config.get('Settings', 'check_type', fallback='LOG').upper() +check_type = config.get('Settings', 'check_type', fallback='DIR').upper() def create_directory(subreddit_name, save_directory, created_dirs_cache): """Create the directory for saving data if it does not exist."""