shaheerawan3 commited on
Commit
2c4273b
·
verified ·
1 Parent(s): 79d8a45

Update views.py

Browse files
Files changed (1) hide show
  1. views.py +16 -0
views.py CHANGED
@@ -7,6 +7,22 @@ from services import CryptoService, EmailService
7
  from utils.security import validate_password, check_rate_limit
8
  from utils.audit import audit_logger
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  # Initialize audit logger with connection after database is set up
11
  def initialize_audit_logger():
12
  if 'db' in st.session_state:
 
7
  from utils.security import validate_password, check_rate_limit
8
  from utils.audit import audit_logger
9
 
10
+ def initialize_services():
11
+ if hasattr(st.session_state, 'db'):
12
+ audit_logger.initialize_with_connection(st.session_state.db)
13
+
14
+ if __name__ == "__main__":
15
+ st.set_page_config(
16
+ page_title="Digital Inheritance System",
17
+ page_icon="🔐",
18
+ layout="wide"
19
+ )
20
+ initialize_session_state()
21
+ initialize_services()
22
+ main()
23
+
24
+
25
+
26
  # Initialize audit logger with connection after database is set up
27
  def initialize_audit_logger():
28
  if 'db' in st.session_state: