Un-hard-code harvest user accountholder name
This commit is contained in:
parent
c43534df7d
commit
ec2e79b59f
2 changed files with 8 additions and 2 deletions
|
@ -287,8 +287,8 @@ unknown = tl[~tl.project.isin(replacement_project_names.keys())]
|
|||
|
||||
harvest = hrvst.rename(columns = {'date': 'Date', 'project': 'Project', 'subproject': 'Task', 'description': 'Notes'})
|
||||
harvest["Hours"] = harvest["time"]/60
|
||||
harvest["First name"] = "Benjamin"
|
||||
harvest["Last name"] = "Melançon"
|
||||
harvest["First name"] = settings.harvest_get_profile_firstname()
|
||||
harvest["Last name"] = settings.harvest_get_profile_lastname()
|
||||
project_client_mapping = settings.harvest_get_projects_clients_map()
|
||||
harvest["Client"] = harvest["Project"].map(project_client_mapping)
|
||||
harvest.drop(columns = ['started', 'recorded', 'time'], inplace=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue