Kamonphanpro commited on
Commit
2c68063
·
1 Parent(s): 521f75b

fix: patch view username in case of admin upload error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def update_data(excel_file):
18
 
19
  # Function to display a list of usernames
20
  def list_usernames():
21
- if type(sheets) == dict:
22
  data = sheets["employee_authentication"]
23
  usernames = data['ชื่อ-สกุลพนักงาน'].unique()
24
  # Display usernames in an HTML table for easy copying
 
18
 
19
  # Function to display a list of usernames
20
  def list_usernames():
21
+ if (type(sheets) == dict and "employee_authentication" in sheets.keys()):
22
  data = sheets["employee_authentication"]
23
  usernames = data['ชื่อ-สกุลพนักงาน'].unique()
24
  # Display usernames in an HTML table for easy copying