From 32309e08b5657634d67969ec8060d44f130f3805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Wed, 2 Jun 2021 10:47:54 -0400 Subject: [PATCH] Fix typo in precise name Harvest wants, and prepare for client mapping --- pomodoro_to_harvest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 41a0269..9fdbc15 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -173,10 +173,14 @@ hrvst = tl[tl.project.isin(harvest_project_names.keys())] other = tl[tl.project.isin(other_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["First name"] = "Benjamin" harvest["Last name"] = "Melançon" +project_client_mapping = { + "": "", +} +harvest["Client"] = harvest["Project"].map(project_client_mapping) harvest.drop(columns = ['started', 'recorded', 'time'], inplace=True) if not debug: