fix config parsing in manifests, remove module level configs

This commit is contained in:
erinhmclark
2025-01-24 13:33:12 +00:00
parent 0453d95f56
commit 024fe58377
16 changed files with 23 additions and 191 deletions

View File

@@ -26,27 +26,6 @@ class GsheetsFeeder(Gsheets, Feeder):
super().__init__(config)
self.gsheets_client = gspread.service_account(filename=self.service_account)
# @staticmethod
# def configs() -> dict:
# return dict(
# Gsheets.configs(),
# ** {
# "allow_worksheets": {
# "default": set(),
# "help": "(CSV) only worksheets whose name is included in allow are included (overrides worksheet_block), leave empty so all are allowed",
# "cli_set": lambda cli_val, cur_val: set(cli_val.split(","))
# },
# "block_worksheets": {
# "default": set(),
# "help": "(CSV) explicitly block some worksheets from being processed",
# "cli_set": lambda cli_val, cur_val: set(cli_val.split(","))
# },
# "use_sheet_names_in_stored_paths": {
# "default": True,
# "help": "if True the stored files path will include 'workbook_name/worksheet_name/...'",
# }
# })
def __iter__(self) -> Metadata:
sh = self.open_sheet()
for ii, wks in enumerate(sh.worksheets()):