mirror of
https://github.com/apache/superset.git
synced 2024-09-06 05:47:43 -04:00
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"]:
|
if not query_object["from_dttm"] or not query_object["to_dttm"]:
|
||||||
raise QueryObjectValidationError(
|
raise QueryObjectValidationError(
|
||||||
_(
|
_(
|
||||||
"`Since` and `Until` time bounds should be specified "
|
"An enclosed time range (both start and end) must be specified "
|
||||||
"when using the `Time Shift` feature."
|
"when using a Time Comparison."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
query_object["from_dttm"] -= delta
|
query_object["from_dttm"] -= delta
|
||||||
|
@ -1275,8 +1275,8 @@ class NVD3TimeSeriesViz(NVD3Viz):
|
|||||||
if not query_object["from_dttm"] or not query_object["to_dttm"]:
|
if not query_object["from_dttm"] or not query_object["to_dttm"]:
|
||||||
raise QueryObjectValidationError(
|
raise QueryObjectValidationError(
|
||||||
_(
|
_(
|
||||||
"`Since` and `Until` time bounds should be specified "
|
"An enclosed time range (both start and end) must be specified "
|
||||||
"when using the `Time Shift` feature."
|
"when using a Time Comparison."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
query_object["from_dttm"] -= delta
|
query_object["from_dttm"] -= delta
|
||||||
|
Loading…
Reference in New Issue
Block a user