Skip to content

Commit

Permalink
updating the settings to DIR to check the speed of execution
Browse files Browse the repository at this point in the history
  • Loading branch information
rhnfzl committed Aug 31, 2024
1 parent 4ac09b4 commit e544ef9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dropbox_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
save_directory = reddit/
dropbox_directory = /reddit
save_type = ALL
check_type = LOG
check_type = DIR

[Configuration]
client_id = None
Expand Down
2 changes: 1 addition & 1 deletion utils/file_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit e544ef9

Please sign in to comment.