Skip to content

Commit

Permalink
Removed unnecessary console logs from events calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelmdLow committed Aug 21, 2024
1 parent 11b4b0c commit ff43f3e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ubyssey/static_src/src/js/components/Events/calendar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,18 @@ export function QueryEventsCalendar() {

const today = new Date();
today.setHours(0, 0, 0, 0);
console.log(today);
var start = new Date(today.getTime() - (10*d));
console.log(start);
while(start.getDay() != 1) {
start = new Date(start.getTime() + d);
}
console.log(start);
let end = new Date(start.getTime() + 29*d)

let q = ["end_time__gte=" + start.toLocaleDateString(),"start_time__lte=" + end.toLocaleDateString(),"limit=300"];
console.log('/api/events/?' + q.join("&"));
axios
.get(
'/api/events/?' + q.join("&")
)
.then((response) => {
console.log(response);
const res = response.data.results;

for (let i=0; i<res.length; i++) {
Expand Down Expand Up @@ -301,7 +296,6 @@ function EventsCalendar({events}) {
}
cur = new Date(cur.getTime() + d);
event = JSON.parse(JSON.stringify(event));
console.log(event);
event.displayTime = "Ongoing";
}
return calendar;
Expand Down

0 comments on commit ff43f3e

Please sign in to comment.