From e58090fe6379de94cbc19239e6459a276282c0af Mon Sep 17 00:00:00 2001 From: Arthur Chan Date: Mon, 25 Nov 2024 19:11:29 +0000 Subject: [PATCH] [JVM] Fix mismatch langauge for jvm projects Signed-off-by: Arthur Chan --- data_prep/introspector.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/data_prep/introspector.py b/data_prep/introspector.py index fa29c41da..c45946906 100755 --- a/data_prep/introspector.py +++ b/data_prep/introspector.py @@ -463,7 +463,12 @@ def query_introspector_language_stats() -> dict: """Queries introspector for language stats""" resp = _query_introspector(INTROSPECTOR_LANGUAGE_STATS, {}) - return _get_data(resp, 'stats', {}) + result = _get_data(resp, 'stats', {}) + if result: + # FI returns java as the key for jvm projects + result = {'jvm' if key == 'java' else key: value for key, value in result.items()} + + return result def query_introspector_type_info(project: str, type_name: str) -> list[dict]: