MilanM commited on
Commit
48af7ad
·
verified ·
1 Parent(s): 0869113

Update src/helper_functions.py

Browse files
Files changed (1) hide show
  1. src/helper_functions.py +2 -1
src/helper_functions.py CHANGED
@@ -11,10 +11,11 @@ from datetime import datetime
11
  import regex
12
  import os
13
 
 
14
 
15
  def check_password():
16
  def password_entered():
17
- if st.session_state["password"] == os.getenv("APP_PASSWORD"):
18
  st.session_state["password_correct"] = True
19
  del st.session_state["password"]
20
  else:
 
11
  import regex
12
  import os
13
 
14
+ app_password = os.getenv("APP_PASSWORD")
15
 
16
  def check_password():
17
  def password_entered():
18
+ if st.session_state["password"] == app_password:
19
  st.session_state["password_correct"] = True
20
  del st.session_state["password"]
21
  else: