Update app.py
Browse files
app.py
CHANGED
|
@@ -143,10 +143,10 @@ def extract_result(lst):
|
|
| 143 |
|
| 144 |
issue_date=str(str_day)+"/"+str(str_month)+"/"+str(year)
|
| 145 |
except:
|
| 146 |
-
|
| 147 |
birth_date=lst[x][1][4]#datetime.strptime(lst[x][1][4], '%y%m%d').strftime('%d/%m/%Y')
|
| 148 |
expiry_date=lst[x][1][5]#datetime.strptime(lst[x][1][5], '%y%m%d').strftime('%d/%m/%Y')
|
| 149 |
-
|
| 150 |
|
| 151 |
|
| 152 |
issue_date=expiry_date
|
|
@@ -206,7 +206,8 @@ def extract_result(lst):
|
|
| 206 |
birth_date=lst[x][4]#datetime.strptime(lst[x][4], '%y%m%d').strftime('%d/%m/%Y')
|
| 207 |
expiry_date=lst[x][5]#datetime.strptime(lst[x][5], '%y%m%d').strftime('%d/%m/%Y')
|
| 208 |
issue_date=expiry_date
|
| 209 |
-
|
|
|
|
| 210 |
|
| 211 |
document_type=lst[x][7]
|
| 212 |
document_number=lst[x][8]
|
|
|
|
| 143 |
|
| 144 |
issue_date=str(str_day)+"/"+str(str_month)+"/"+str(year)
|
| 145 |
except:
|
| 146 |
+
print("I am in 1st except")
|
| 147 |
birth_date=lst[x][1][4]#datetime.strptime(lst[x][1][4], '%y%m%d').strftime('%d/%m/%Y')
|
| 148 |
expiry_date=lst[x][1][5]#datetime.strptime(lst[x][1][5], '%y%m%d').strftime('%d/%m/%Y')
|
| 149 |
+
print(birth_date)
|
| 150 |
|
| 151 |
|
| 152 |
issue_date=expiry_date
|
|
|
|
| 206 |
birth_date=lst[x][4]#datetime.strptime(lst[x][4], '%y%m%d').strftime('%d/%m/%Y')
|
| 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 |
|
| 212 |
document_type=lst[x][7]
|
| 213 |
document_number=lst[x][8]
|