mrfirdauss commited on
Commit
e7617a8
·
verified ·
1 Parent(s): d22d262

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ async def classify(body:JobAndCV):
36
  mininmal_start = datetime.strptime(body.cv.experiences[0]['start'], "%Y-%m-%d").date() if body.cv.experiences[0].get('start') != None else datetime.today().date()
37
  maximal_end = datetime.strptime(body.cv.experiences[0]['end'], "%Y-%m-%d").date() if body.cv.experiences[0].get('end') != None else datetime.today().date()
38
  for exp in body.cv.experiences:
39
- positions.append(exp['designation'])
40
  if exp.get('end') == None:
41
  exp['end'] = datetime.today().strftime("%Y-%m-%d")
42
  if datetime.strptime(exp['start'], "%Y-%m-%d").date() < mininmal_start:
 
36
  mininmal_start = datetime.strptime(body.cv.experiences[0]['start'], "%Y-%m-%d").date() if body.cv.experiences[0].get('start') != None else datetime.today().date()
37
  maximal_end = datetime.strptime(body.cv.experiences[0]['end'], "%Y-%m-%d").date() if body.cv.experiences[0].get('end') != None else datetime.today().date()
38
  for exp in body.cv.experiences:
39
+ positions.append(exp['position'])
40
  if exp.get('end') == None:
41
  exp['end'] = datetime.today().strftime("%Y-%m-%d")
42
  if datetime.strptime(exp['start'], "%Y-%m-%d").date() < mininmal_start: