klydekushy commited on
Commit
8018fdc
·
verified ·
1 Parent(s): 6896d6d

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +7 -3
src/streamlit_app.py CHANGED
@@ -12,11 +12,12 @@ sys.path.append(os.path.join(os.path.dirname(__file__), 'modules'))
12
 
13
  # IMPORT DU NOUVEAU MODULE
14
  try:
15
- from modules import kyc_form, map_dashboard # <-- Ajout ici
16
  except ImportError:
17
  # Fallback si l'import direct échoue (structure de dossier simple)
18
  import kyc_form
19
- import map_dashboard # <-- Ajout ici
 
20
 
21
  # ==============================================================================
22
  # 1. CONFIGURATION DU "DIRECT DRIVER" & DESIGN
@@ -132,7 +133,7 @@ if client:
132
  st.sidebar.divider()
133
 
134
  menu = st.sidebar.radio("NAVIGATION",
135
- ["TABLEAU DE BORD", "CARTE TACTIQUE","KYC CLIENTS"]
136
  )
137
 
138
  # --- A. TABLEAU DE BORD ---
@@ -165,4 +166,7 @@ if client:
165
  # C'est ici que la magie opère : on passe le client et la fonction ID au module
166
  kyc_form.show_kyc_form(client, SHEET_NAME, generate_ontology_id)
167
 
 
 
 
168
 
 
12
 
13
  # IMPORT DU NOUVEAU MODULE
14
  try:
15
+ from modules import kyc_form, map_dashboard, loans_engine # <-- Ajout ici
16
  except ImportError:
17
  # Fallback si l'import direct échoue (structure de dossier simple)
18
  import kyc_form
19
+ import map_dashboard
20
+ import loans_engine # <-- Ajout ici
21
 
22
  # ==============================================================================
23
  # 1. CONFIGURATION DU "DIRECT DRIVER" & DESIGN
 
133
  st.sidebar.divider()
134
 
135
  menu = st.sidebar.radio("NAVIGATION",
136
+ ["TABLEAU DE BORD", "CARTE TACTIQUE","KYC CLIENTS", "OCTROI PRÊTS"]
137
  )
138
 
139
  # --- A. TABLEAU DE BORD ---
 
166
  # C'est ici que la magie opère : on passe le client et la fonction ID au module
167
  kyc_form.show_kyc_form(client, SHEET_NAME, generate_ontology_id)
168
 
169
+ elif menu == "OCTROI PRÊTS":
170
+ loans_engine.show_loans_engine(client, SHEET_NAME)
171
+
172