Facilitateurs dans la classe
This commit is contained in:
parent
0ab8ddf404
commit
521f904778
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user