Skip to content

Commit

Permalink
log period dates
Browse files Browse the repository at this point in the history
  • Loading branch information
refact0r committed Feb 22, 2023
1 parent 1819486 commit 90fbe21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
return
}
const json = await res.json()
console.log(json)
let { student, periods, currentPeriod } = json
$session = {
student,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/data/+server.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export async function GET({ locals }) {
JSON.stringify({
student: result.shift(),
periods: result,
currentPeriod
currentPeriod,
periodDates: result[1].ReportingPeriods.ReportPeriod
}),
{
headers: {
Expand Down

0 comments on commit 90fbe21

Please sign in to comment.