Skip to content

Commit

Permalink
updated timesheets endpoint to add timesheet id in payload
Browse files Browse the repository at this point in the history
  • Loading branch information
delterr committed Apr 5, 2024
1 parent db7ec32 commit ffb4a97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/timesheets/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ def get(self, consultant_username):
json_dict[timesheet.id] = {"name": timesheet.consultant_name,
"username": consultant.username,
"status": timesheet.status, "workStart": timesheet.start_work_time,
"endWork": timesheet.end_work_time, "date": timesheet.day, "weekStartDate": timesheet.week_start_date}
"endWork": timesheet.end_work_time, "date": timesheet.day, "weekStartDate": timesheet.week_start_date,
"timesheet_id": timesheet.id}

return jsonify(json_dict), 200

Expand Down

0 comments on commit ffb4a97

Please sign in to comment.