Spaces:
Sleeping
Sleeping
Commit ·
946449e
1
Parent(s): 4978f67
fix: correct indentation
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -300,7 +300,7 @@ elif st.session_state.step == 4:
|
|
| 300 |
- **Sumber Aturan:** {source}
|
| 301 |
""")
|
| 302 |
|
| 303 |
-
|
| 304 |
sol_text = "- **Solusi Pengendalian:**\n"
|
| 305 |
for sol in matched_rule['solutions']:
|
| 306 |
sol_text += f" - {sol}\n"
|
|
|
|
| 300 |
- **Sumber Aturan:** {source}
|
| 301 |
""")
|
| 302 |
|
| 303 |
+
if matched_rule and 'solutions' in matched_rule and matched_rule['solutions']:
|
| 304 |
sol_text = "- **Solusi Pengendalian:**\n"
|
| 305 |
for sol in matched_rule['solutions']:
|
| 306 |
sol_text += f" - {sol}\n"
|