diff options
author | Teddy Wing | 2017-06-03 12:08:07 +0200 |
---|---|---|
committer | Teddy Wing | 2017-06-03 12:20:41 +0200 |
commit | 810b140b4a29b1159e76b51b90b9be7d22df1c3e (patch) | |
tree | 0fe9c570f3b629d4690e1ee17320a0b7a9d0f1f3 /timetask/profile.go | |
parent | bd1a9e85c2ee87017208772b88190b75319874d2 (diff) | |
download | timetasker-810b140b4a29b1159e76b51b90b9be7d22df1c3e.tar.bz2 |
buildSubmissionParams(): Support new `TimeEntry`; Submit single entry
Change the function to use our new `TimeEntry` type, which doesn't
demand asking for IDs as it already has them built in.
Additionally, remove the loop here as we only want to submit a single
time entry at a time.
Add a new `Profile` type that holds onto the user's person_id. Forgot
that existed. We'll have users fill that into their config.toml file.
Diffstat (limited to 'timetask/profile.go')
-rw-r--r-- | timetask/profile.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/timetask/profile.go b/timetask/profile.go new file mode 100644 index 0000000..66e9197 --- /dev/null +++ b/timetask/profile.go @@ -0,0 +1,5 @@ +package timetask + +type Profile struct { + PersonID int +} |