diff --git a/mindinsight/backend/datavisual/train_visual_api.py b/mindinsight/backend/datavisual/train_visual_api.py index ababa5c6dc0b5cdde7e44c58609eced2767ae324..fa1462bc3ee881da3d242df418af9dc8c13a44b4 100644 --- a/mindinsight/backend/datavisual/train_visual_api.py +++ b/mindinsight/backend/datavisual/train_visual_api.py @@ -78,7 +78,7 @@ def scalar_metadata(): one of which is an object containing items' wall_time, step and value. """ tag = request.args.get("tag") - train_id = request.args.get("train_id") + train_id = get_train_id(request) processor = ScalarsProcessor(DATA_MANAGER) response = processor.get_metadata_list(train_id, tag)