chore: update files

This commit is contained in:
DaanSelen
2026-03-04 16:57:14 +01:00
parent 95bb2585cb
commit 7b81d5faeb
9 changed files with 122 additions and 65 deletions
-11
View File
@@ -5,17 +5,6 @@ import logging as log
import os
class utilities():
@staticmethod
def filter_config(config_contents: dict, filter_keyword: str) -> tuple[bool, dict]:
'''
Helper function to grab a specific part of the config
'''
for section_name, section_values in config_contents.items():
if str(section_name).lower() == filter_keyword.lower():
if isinstance(section_values, dict):
return True, dict(section_values)
return False, {}
@staticmethod
def ensure_directory(path: str) -> bool:
'''