Skip to content

Commit a6f1871

Browse files
small nit
1 parent b244049 commit a6f1871

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

superset/utils/date_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def get_since_until( # pylint: disable=too-many-arguments,too-many-locals,too-m
506506
r"^(start of|beginning of|end of)\s{1,5}"
507507
r"(this|last|next|prior)\s{1,5}"
508508
r"([0-9]+)?\s{0,5}"
509-
r"(day|week|month|quarter|year)s?$", # Matches "start of next month" # noqa: E501
509+
r"(day|week|month|quarter|year)s?$", # Matches phrases like "start of next month" # noqa: E501
510510
lambda modifier, scope, delta, unit: handle_modifier_and_unit(
511511
modifier,
512512
scope,
@@ -540,7 +540,7 @@ def get_since_until( # pylint: disable=too-many-arguments,too-many-locals,too-m
540540
(
541541
r"^(this|last|next|prior)\s{1,5}"
542542
r"([0-9]+)?\s{0,5}"
543-
r"(second|minute|day|week|month|quarter|year)s?$", # Matches "next 5 days" # noqa: E501
543+
r"(second|minute|day|week|month|quarter|year)s?$", # Matches "next 5 days" or "last 2 weeks" # noqa: E501
544544
lambda scope, delta, unit: handle_scope_and_unit(
545545
scope, delta, unit, get_relative_base(unit, relative_start)
546546
),

0 commit comments

Comments
 (0)