Dragonanta67 commited on
Commit
a7f8a02
·
verified ·
1 Parent(s): 69cfc08

Izlabota indentācijas kļūda

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -74,6 +74,7 @@ def analyze_experience(text):
74
  if end.lower() in ['tagad', 'present', 'šobrīd']:
75
  end_year = datetime.now().year
76
  else:
 
77
  except:
78
  continue
79
 
 
74
  if end.lower() in ['tagad', 'present', 'šobrīd']:
75
  end_year = datetime.now().year
76
  else:
77
+ end_year = int(end.split('/')[-1].split('.')[-1])
78
  except:
79
  continue
80