mirror of
https://github.com/WGDashboard/WGDashboard-PRW.git
synced 2026-08-04 15:02:59 +00:00
chore: update files
This commit is contained in:
@@ -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:
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user