nam194 commited on
Commit
11a3d78
1 Parent(s): e1ecee3

Update parse_info.py

Browse files
Files changed (1) hide show
  1. parse_info.py +1 -1
parse_info.py CHANGED
@@ -46,7 +46,7 @@ def parse_time(inp: List):
46
  duration += (datetime.strptime(d2, "%d-%m-%Y") - datetime.strptime(d1, "%d-%m-%Y")).days
47
  except:
48
  continue
49
- return "{:.1f} năm".format(duration/365)
50
 
51
  filename = "./skills.csv"
52
  detected = chardet.detect(Path(filename).read_bytes()) # "ISO-8859-1"
 
46
  duration += (datetime.strptime(d2, "%d-%m-%Y") - datetime.strptime(d1, "%d-%m-%Y")).days
47
  except:
48
  continue
49
+ return "{:.1f} năm".format(np.abs(duration/365))
50
 
51
  filename = "./skills.csv"
52
  detected = chardet.detect(Path(filename).read_bytes()) # "ISO-8859-1"