wajid commited on
Commit
cfd326f
·
1 Parent(s): 4b33b81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -207,15 +207,17 @@ def extract_result(lst):
207
  expiry_date=lst[x][5]#datetime.strptime(lst[x][5], '%y%m%d').strftime('%d/%m/%Y')
208
  issue_date=expiry_date
209
  print("I am in 2nd except")
210
- print(birth_date)
211
  # print(datetime.strptime(lst[x][4], '%y%m%d').strftime('%d/%m/%Y'))
212
- print(datetime.strptime(lst[x][4], '%y%m%d'))
213
  document_type=lst[x][7]
214
  document_number=lst[x][8]
215
  print(document_number)
216
 
217
  if document_type=="P" or document_type=="p":# or document_type=="PM" or document_type=="PO":
 
218
  temp_lst.append([surname,name,country,birth_date,expiry_date,document_number,issue_date])
 
219
  else:
220
  print(lst)
221
  temp_lst.append("The attached document is not a Passport")
 
207
  expiry_date=lst[x][5]#datetime.strptime(lst[x][5], '%y%m%d').strftime('%d/%m/%Y')
208
  issue_date=expiry_date
209
  print("I am in 2nd except")
210
+ #print(birth_date)
211
  # print(datetime.strptime(lst[x][4], '%y%m%d').strftime('%d/%m/%Y'))
212
+ # print(datetime.strptime(lst[x][4], '%y%m%d'))
213
  document_type=lst[x][7]
214
  document_number=lst[x][8]
215
  print(document_number)
216
 
217
  if document_type=="P" or document_type=="p":# or document_type=="PM" or document_type=="PO":
218
+
219
  temp_lst.append([surname,name,country,birth_date,expiry_date,document_number,issue_date])
220
+ print(temp_lst)
221
  else:
222
  print(lst)
223
  temp_lst.append("The attached document is not a Passport")