Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compiler_admin/services/toggl.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
NOT_FOUND = "NOT FOUND"

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

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

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

# update static calculated columns
source["Client"] = client_name
Expand Down
Loading