Skip to content

Commit

Permalink
Asking for events already sorted by date
Browse files Browse the repository at this point in the history
  • Loading branch information
c2d13p authored Mar 19, 2024
1 parent 68ea702 commit 447cafa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eventsAndVisitorsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ async function loadEvents() {

try {
// let res = await fetch('https://www.dm.unipi.it/wp-json/wp/v2/unipievents?per_page=50');
let res_sem = await (await fetch('https://manage.dm.unipi.it/api/v0/public/seminars?from=now')).json()
let res_con = await (await fetch('https://manage.dm.unipi.it/api/v0/public/conferences?from=now')).json()
let res_sem = await (await fetch('https://manage.dm.unipi.it/api/v0/public/seminars?from=now&_sort=startDatetime')).json()
let res_con = await (await fetch('https://manage.dm.unipi.it/api/v0/public/conferences?from=now&_sort=startDate')).json()

const res_sem_aug = res_sem.data.map((x) => {
return { ...x, type: 'seminar' }
Expand Down

0 comments on commit 447cafa

Please sign in to comment.