mrfirdauss commited on
Commit
e090d55
·
verified ·
1 Parent(s): c2b649f

Update app.py

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