Skip to content

Commit 5fd253c

Browse files
authored
Refactor: shift Toggl task up to project (#21)
2 parents 543a2af + 6631504 commit 5fd253c

File tree

2 files changed

+252
-252
lines changed

2 files changed

+252
-252
lines changed

compiler_admin/services/toggl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
NOT_FOUND = "NOT FOUND"
1616

1717
# input CSV columns needed for conversion
18-
INPUT_COLUMNS = ["Email", "Task", "Client", "Start date", "Start time", "Duration", "Description"]
18+
INPUT_COLUMNS = ["Email", "Project", "Client", "Start date", "Start time", "Duration", "Description"]
1919

2020
# default output CSV columns
2121
OUTPUT_COLUMNS = ["Date", "Client", "Project", "Task", "Notes", "Hours", "First name", "Last name"]
@@ -110,7 +110,7 @@ def convert_to_harvest(
110110
source.sort_values(["Start date", "Start time", "Email"], inplace=True)
111111

112112
# rename columns that can be imported as-is
113-
source.rename(columns={"Task": "Project", "Description": "Notes", "Start date": "Date"}, inplace=True)
113+
source.rename(columns={"Project": "Project", "Description": "Notes", "Start date": "Date"}, inplace=True)
114114

115115
# update static calculated columns
116116
source["Client"] = client_name

0 commit comments

Comments
 (0)