mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
fix: missing orderby in query on the nvd3 timeseries chart (#15343)
This commit is contained in:
@@ -1269,6 +1269,11 @@ def get_metric_names(metrics: Sequence[Metric]) -> List[str]:
|
||||
return [get_metric_name(metric) for metric in metrics]
|
||||
|
||||
|
||||
def get_main_metric_name(metrics: Sequence[Metric]) -> Optional[str]:
|
||||
metric_labels = get_metric_names(metrics)
|
||||
return metric_labels[0] if metric_labels else None
|
||||
|
||||
|
||||
def ensure_path_exists(path: str) -> None:
|
||||
try:
|
||||
os.makedirs(path)
|
||||
|
||||
Reference in New Issue
Block a user