Skip to content

Commit

Permalink
fix: improve time compare range error (apache#11252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Ritter authored Oct 13, 2020
1 parent 8676c3e commit 16f7b2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,8 +1405,8 @@ def run_extra_queries(self) -> None:
if not query_object["from_dttm"] or not query_object["to_dttm"]:
raise QueryObjectValidationError(
_(
"`Since` and `Until` time bounds should be specified "
"when using the `Time Shift` feature."
"An enclosed time range (both start and end) must be specified "
"when using a Time Comparison."
)
)
query_object["from_dttm"] -= delta
Expand Down
4 changes: 2 additions & 2 deletions superset/viz_sip38.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,8 +1275,8 @@ def run_extra_queries(self):
if not query_object["from_dttm"] or not query_object["to_dttm"]:
raise QueryObjectValidationError(
_(
"`Since` and `Until` time bounds should be specified "
"when using the `Time Shift` feature."
"An enclosed time range (both start and end) must be specified "
"when using a Time Comparison."
)
)
query_object["from_dttm"] -= delta
Expand Down

0 comments on commit 16f7b2b

Please sign in to comment.