Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: notebooks for hours conversion #17

Merged
merged 27 commits into from
Apr 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
98eff71
feat(devcontainer): setup for jupyter notebooks
thekaveman Apr 5, 2024
dde5e33
chore(data): add sample harvest export data
thekaveman Apr 5, 2024
0c754c5
feat(harvest): setup notebook for toggl conversion
thekaveman Apr 5, 2024
7e90102
feat(harvest): simple column updates/conversions
thekaveman Apr 5, 2024
51d917d
feat(harvest): add billable static column
thekaveman Apr 15, 2024
d8bb63c
refactor(harvest): helper formats duration string
thekaveman Apr 15, 2024
2e76702
fix(harvest): sentence case field
thekaveman Apr 15, 2024
84858e6
fix(harvest): keep duration as timedelta for offset calc
thekaveman Apr 15, 2024
2abd102
feat(harvest): calculate the start time
thekaveman Apr 15, 2024
ff6cf7b
feat(harvest): convert back to strings, export to CSV
thekaveman Apr 15, 2024
ea6934a
chore(harvest): remove debug prints
thekaveman Apr 15, 2024
5676a1f
chore(data): add sample toggl data
thekaveman Apr 15, 2024
1f2a722
feat(toggl): setup notebook for harvest conversion
thekaveman Apr 15, 2024
2e45fe1
feat(toggl): simple column updates/conversions
thekaveman Apr 15, 2024
30a3f22
feat(toggl): read/write a user info file
thekaveman Apr 16, 2024
84c5be0
feat(toggl): cache the user info in memory
thekaveman Apr 16, 2024
0330774
feat(toggl): get first name from email
thekaveman Apr 16, 2024
85cb99a
refactor(commands): move return codes to top level
thekaveman Apr 16, 2024
0c887a7
refactor(tests): don't hardcode temp file lines
thekaveman Apr 16, 2024
da48171
feat(google): get a user info dict
thekaveman Apr 16, 2024
39f1267
feat(toggl): get last name from google
thekaveman Apr 16, 2024
d99d906
feat(toggl): write user info back to file
thekaveman Apr 16, 2024
761c594
fix(toggl): forgot to import Description field
thekaveman Apr 16, 2024
19a0165
feat(toggl): calculate decimal hours from duration str
thekaveman Apr 16, 2024
3ea66b0
feat(toggl): save resulting data as CSV
thekaveman Apr 16, 2024
8deb4f7
chore(toggl): clean up debug prints
thekaveman Apr 16, 2024
27c23ba
feat(toggl): project info file can override project name
thekaveman Apr 16, 2024
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
Prev Previous commit
Next Next commit
fix(toggl): forgot to import Description field
  • Loading branch information
thekaveman committed Apr 19, 2024
commit 761c594178d44255b973d4deaf3891671425e1ac
1 change: 1 addition & 0 deletions notebooks/toggl-to-harvest.ipynb
Original file line number Diff line number Diff line change
@@ -55,6 +55,7 @@
" \"Start date\",\n",
" \"Start time\",\n",
" \"Duration\",\n",
" \"Description\"\n",
"]\n",
"# read CSV file, parsing dates and times\n",
"source = pd.read_csv(DATA_SOURCE, dtype=dtypes, usecols=cols, parse_dates=[\"Start date\"], cache_dates=True)\n",