Fix Portuguese "from" and "to" date modifiers

This commit is contained in:
Nick Hall 2023-07-11 21:24:31 +01:00
parent f2a43bd19c
commit 1d920b6c89

View File

@ -54,7 +54,6 @@ class DateParserPT(DateParser):
"antes": Date.MOD_BEFORE, "antes": Date.MOD_BEFORE,
"ant.": Date.MOD_BEFORE, "ant.": Date.MOD_BEFORE,
"ant": Date.MOD_BEFORE, "ant": Date.MOD_BEFORE,
"até": Date.MOD_BEFORE,
"depois de": Date.MOD_AFTER, "depois de": Date.MOD_AFTER,
"depois": Date.MOD_AFTER, "depois": Date.MOD_AFTER,
"dep.": Date.MOD_AFTER, "dep.": Date.MOD_AFTER,
@ -70,8 +69,8 @@ class DateParserPT(DateParser):
"por volta de": Date.MOD_ABOUT, "por volta de": Date.MOD_ABOUT,
"por volta": Date.MOD_ABOUT, "por volta": Date.MOD_ABOUT,
"pvd.": Date.MOD_ABOUT, "pvd.": Date.MOD_ABOUT,
"from": Date.MOD_FROM, "de": Date.MOD_FROM,
"to": Date.MOD_TO, "até": Date.MOD_TO,
} }
calendar_to_int = { calendar_to_int = {