Add Toggl data to attendances, fix attendance creation for past lectures. Change styling a little.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user