Skip to content

Commit

Permalink
Remove redundant function that was moved to import_helpers file
Browse files Browse the repository at this point in the history
  • Loading branch information
DevChima committed Feb 18, 2025
1 parent c103c9a commit 3206672
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions home/import_assessments.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import contextlib
import csv
import re
from dataclasses import dataclass, field, fields
from queue import Queue
from typing import Any
Expand Down Expand Up @@ -223,9 +222,6 @@ def validate_headers(self, headers: list[str], row_num: int) -> None:
row_num=row_num,
)

def to_snake_case(self, s: str) -> str:
return re.sub(r"[\W_]+", "_", s).lower().strip("_")


# Since wagtail page models are so difficult to create and modify programatically,
# we instead store all the pages as these shadow objects, which we can then at the end
Expand Down

0 comments on commit 3206672

Please sign in to comment.