fix : might as well comment that out while im at it

This commit is contained in:
2024-07-29 01:11:00 -05:00
parent 36cd86689a
commit 5261ceabc6

View File

@@ -94,20 +94,20 @@ async function PapaParse(department, num, name, instructor, sem) {
// temp code below // temp code below
const url2 = 'https://ut-grade-data.vercel.app/v2/query?department=Computer Science&sem=Fall 2023&num=439&professor=Norman'; const url2 = 'https://ut-grade-data.vercel.app/v2/query?department=Computer Science&sem=Fall 2023&num=439&professor=Norman';
try { // try {
const response = await fetch(altUrl); // const response = await fetch(altUrl);
const data = await response.json(); // const data = await response.json();
if (data.length === 0) { // if (data.length === 0) {
alert("No data found. Try again :("); // alert("No data found. Try again :(");
return; // return;
} // }
console.log(data); // console.log(data);
} catch (error) { // } catch (error) {
console.error("Error fetching data:", error); // console.error("Error fetching data:", error);
alert("An error occurred while fetching data. Please try again."); // alert("An error occurred while fetching data. Please try again.");
} // }
if (sem.substring(0, 2) === 's2') { if (sem.substring(0, 2) === 's2') {
/** /**