mirror of https://github.com/apache/superset.git
fix: improve time compare range error (#11252)
This commit is contained in:
parent
8676c3ebd6
commit
16f7b2b525
|
@ -1405,8 +1405,8 @@ class NVD3TimeSeriesViz(NVD3Viz):
|
|||
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
|
||||
|
|
|
@ -1275,8 +1275,8 @@ class NVD3TimeSeriesViz(NVD3Viz):
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue