Fix typo in precise name Harvest wants, and prepare for client mapping

This commit is contained in:
benjamin melançon 2021-06-02 10:47:54 -04:00
parent 88504f6881
commit 32309e08b5

View file

@ -173,10 +173,14 @@ hrvst = tl[tl.project.isin(harvest_project_names.keys())]
other = tl[tl.project.isin(other_project_names.keys())] other = tl[tl.project.isin(other_project_names.keys())]
unknown = tl[~tl.project.isin(replacement_project_names.keys())] unknown = tl[~tl.project.isin(replacement_project_names.keys())]
harvest = hrvst.rename(columns = {'date': 'Date', 'project': 'Project', 'subproject': 'Task', 'description': 'Note'}) harvest = hrvst.rename(columns = {'date': 'Date', 'project': 'Project', 'subproject': 'Task', 'description': 'Notes'})
harvest["Hours"] = harvest["time"]/60 harvest["Hours"] = harvest["time"]/60
harvest["First name"] = "Benjamin" harvest["First name"] = "Benjamin"
harvest["Last name"] = "Melançon" harvest["Last name"] = "Melançon"
project_client_mapping = {
"": "",
}
harvest["Client"] = harvest["Project"].map(project_client_mapping)
harvest.drop(columns = ['started', 'recorded', 'time'], inplace=True) harvest.drop(columns = ['started', 'recorded', 'time'], inplace=True)
if not debug: if not debug: