Spaces:
Running
Running
Update ui/insights_ui_generator.py
Browse files
ui/insights_ui_generator.py
CHANGED
@@ -70,7 +70,7 @@ def extract_key_results_for_selection(
|
|
70 |
logger.warning(f"Key Result item for OKR '{okr_objective}' at KR index {kr_idx} is not a dictionary, skipping.")
|
71 |
continue
|
72 |
|
73 |
-
kr_description = kr_data.get('key_result_description'
|
74 |
key_results_for_ui.append({
|
75 |
'okr_index': okr_idx, # Index of the parent OKR in the original list
|
76 |
'kr_index': kr_idx, # Index of this KR within its parent OKR
|
|
|
70 |
logger.warning(f"Key Result item for OKR '{okr_objective}' at KR index {kr_idx} is not a dictionary, skipping.")
|
71 |
continue
|
72 |
|
73 |
+
kr_description = kr_data.get('key_result_description') or kr_data.get('description') or f"Key Result {kr_idx+1} (No description)"
|
74 |
key_results_for_ui.append({
|
75 |
'okr_index': okr_idx, # Index of the parent OKR in the original list
|
76 |
'kr_index': kr_idx, # Index of this KR within its parent OKR
|