Fix date modifiers for ca and uk

This commit is contained in:
Nick Hall 2023-08-05 21:46:19 +01:00
parent af7f9a3f7b
commit 5981980572
2 changed files with 4 additions and 5 deletions

View File

@ -66,8 +66,8 @@ class DateParserCA(DateParser):
"cap a": Date.MOD_ABOUT,
"al voltant": Date.MOD_ABOUT,
"al voltant de": Date.MOD_ABOUT,
"from": Date.MOD_FROM,
"to": Date.MOD_TO,
"des de": Date.MOD_FROM,
"fins": Date.MOD_TO,
}
calendar_to_int = {

View File

@ -57,7 +57,6 @@ class DateParserUK(DateParser):
# modifiers before the date
modifier_to_int = {
"перед": Date.MOD_BEFORE,
"до": Date.MOD_BEFORE,
"раніше": Date.MOD_BEFORE,
"після": Date.MOD_AFTER,
"п.": Date.MOD_AFTER,
@ -68,8 +67,8 @@ class DateParserUK(DateParser):
"близько": Date.MOD_ABOUT,
"бл.": Date.MOD_ABOUT,
"біля": Date.MOD_ABOUT,
"from": Date.MOD_FROM,
"to": Date.MOD_TO,
"від": Date.MOD_FROM,
"до": Date.MOD_TO,
}
quality_to_int = {