diff --git a/src/agenda_culturel/import_tasks/extractor.py b/src/agenda_culturel/import_tasks/extractor.py index 76135d9..175be00 100644 --- a/src/agenda_culturel/import_tasks/extractor.py +++ b/src/agenda_culturel/import_tasks/extractor.py @@ -4,9 +4,6 @@ import re import unicodedata -def remove_accents(input_str): - nfkd_form = unicodedata.normalize("NFKD", input_str) - return "".join([c for c in nfkd_form if not unicodedata.combining(c)]) class Extractor(ABC): @@ -18,6 +15,10 @@ class Extractor(ABC): self.downloader = None self.referer = "" + def remove_accents(input_str): + nfkd_form = unicodedata.normalize("NFKD", input_str) + return "".join([c for c in nfkd_form if not unicodedata.combining(c)]) + def guess_end_day(start_day, start_time, end_time): if end_time: if end_time > start_time: