Add Toggl data to attendances, fix attendance creation for past lectures. Change styling a little.

This commit is contained in:
2023-10-02 16:19:37 +01:00
parent 2530ee629a
commit 9a5116f29e
7 changed files with 43 additions and 23 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
module Toggl
def self.entries_for_project(toggl_project_id, start_time:, end_time:)
HTTParty.post(
JSON.parse(HTTParty.post(
"http://localhost:3005/report",
body: {
"start_date": start_time.to_date.to_fs(),
@@ -8,6 +8,6 @@ module Toggl
"project_ids": [toggl_project_id]
}.to_json,
headers: { 'Content-Type' => 'application/json', 'Accept' => 'application/json' }
)
).body)
end
end