Facilitateurs dans la classe

This commit is contained in:
Jean-Marie Favreau 2024-10-12 19:10:08 +02:00
parent 0ab8ddf404
commit 521f904778

View File

@ -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: