wajid commited on
Commit
98360ec
·
1 Parent(s): b7a1380

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -114,6 +114,7 @@ def extract_result(lst):
114
 
115
  try:
116
  birth_date=datetime.strptime(lst[x][1][4], '%y%m%d').strftime('%d/%m/%Y')
 
117
  expiry_date=datetime.strptime(lst[x][1][5], '%y%m%d').strftime('%d/%m/%Y')
118
  year=datetime.strptime(lst[x][1][5], '%y%m%d').year
119
  month=datetime.strptime(lst[x][1][5], '%y%m%d').month
@@ -152,6 +153,7 @@ def extract_result(lst):
152
 
153
  document_type=lst[x][1][7]
154
  document_number=lst[x][1][8]
 
155
  temp_lst.append([surname,name,country,birth_date,expiry_date,document_number,issue_date])
156
 
157
  #temp_lst.append([surname,name,country,nationality,birth_date,expiry_date,document_type,document_number])
@@ -166,6 +168,7 @@ def extract_result(lst):
166
  try:
167
 
168
  birth_date=datetime.strptime(lst[x][4], '%y%m%d').strftime('%d/%m/%Y')
 
169
  expiry_date=datetime.strptime(lst[x][5], '%y%m%d').strftime('%d/%m/%Y')
170
  year=datetime.strptime(lst[x][5], '%y%m%d').year
171
  month=datetime.strptime(lst[x][5], '%y%m%d').month
@@ -207,6 +210,7 @@ def extract_result(lst):
207
 
208
  document_type=lst[x][7]
209
  document_number=lst[x][8]
 
210
 
211
  if document_type=="P" or document_type=="p":# or document_type=="PM" or document_type=="PO":
212
  temp_lst.append([surname,name,country,birth_date,expiry_date,document_number,issue_date])
 
114
 
115
  try:
116
  birth_date=datetime.strptime(lst[x][1][4], '%y%m%d').strftime('%d/%m/%Y')
117
+ print(birth_date)
118
  expiry_date=datetime.strptime(lst[x][1][5], '%y%m%d').strftime('%d/%m/%Y')
119
  year=datetime.strptime(lst[x][1][5], '%y%m%d').year
120
  month=datetime.strptime(lst[x][1][5], '%y%m%d').month
 
153
 
154
  document_type=lst[x][1][7]
155
  document_number=lst[x][1][8]
156
+ print(document_number)
157
  temp_lst.append([surname,name,country,birth_date,expiry_date,document_number,issue_date])
158
 
159
  #temp_lst.append([surname,name,country,nationality,birth_date,expiry_date,document_type,document_number])
 
168
  try:
169
 
170
  birth_date=datetime.strptime(lst[x][4], '%y%m%d').strftime('%d/%m/%Y')
171
+ print(birth_date)
172
  expiry_date=datetime.strptime(lst[x][5], '%y%m%d').strftime('%d/%m/%Y')
173
  year=datetime.strptime(lst[x][5], '%y%m%d').year
174
  month=datetime.strptime(lst[x][5], '%y%m%d').month
 
210
 
211
  document_type=lst[x][7]
212
  document_number=lst[x][8]
213
+ print(document_number)
214
 
215
  if document_type=="P" or document_type=="p":# or document_type=="PM" or document_type=="PO":
216
  temp_lst.append([surname,name,country,birth_date,expiry_date,document_number,issue_date])