Fix typo in precise name Harvest wants, and prepare for client mapping
This commit is contained in:
parent
88504f6881
commit
32309e08b5
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue