Writer and manager updates.

This commit is contained in:
lwark
2025-07-22 13:15:24 -05:00
parent 53c6668ce1
commit b9ca9586ec
21 changed files with 661 additions and 329 deletions

View File

@@ -550,6 +550,21 @@ def copy_cells(source_sheet, target_sheet):
if not isinstance(source_cell, openpyxl.cell.ReadOnlyCell) and source_cell.comment:
target_cell.comment = copy(source_cell.comment)
def list_str_comparator(input_str:str, listy: List[str], mode: Literal["starts_with", "contains"]) -> bool:
match mode:
case "starts_with":
if any([input_str.startswith(item) for item in listy]):
return True
else:
return False
case "contains":
if any([item in input_str for item in listy]):
return True
else:
return False
def setup_lookup(func):
"""
Checks to make sure all args are allowed