Skip to content

Commit

Permalink
delete debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
das08 committed May 4, 2022
1 parent 743639c commit 5f50e51
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/entryTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ function MiniSakaiEntryList(props: {
return `${baseClass} ${clazz}`;
}, [props.dueType]);

console.log("course", props.entriesWithCourse)
// console.log("course", props.entriesWithCourse)

// group entries by course
let courseIdMap = new Map<string, EntryUnion[]>(); // map courseID -> EntryUnions
Expand Down
2 changes: 1 addition & 1 deletion src/features/entity/assignment/getAssignment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const getAssignments = async (
useCache: boolean
): Promise<Array<Assignment>> => {
const storedAssignments = await getStoredAssignments(hostname);
console.log("getAssignment, useCache:", useCache);
// console.log("getAssignment, useCache:", useCache);
if (useCache) return storedAssignments;
const sakaiAssignments = await getSakaiAssignments(hostname, courses);
const merged = mergeEntities<Assignment>(storedAssignments, sakaiAssignments);
Expand Down
4 changes: 2 additions & 2 deletions src/features/entity/assignment/saveAssignment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const saveAssignmentEntry = async (hostname: string, changedEntry: Assign
}
}
}
console.log('before save: ', assignments);
// console.log('before save: ', assignments);
await saveAssignments(hostname, assignments);
chrome.storage.local.get(null, (e) => {
console.log(e);
// console.log(e);
});
};
2 changes: 1 addition & 1 deletion src/features/entity/quiz/getQuiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getStoredQuizzes = (hostname: string): Promise<Array<Quiz>> => {

export const getQuizzes = async (hostname: string, courses: Array<Course>, useCache: boolean): Promise<Array<Quiz>> => {
const storedQuizzes = await getStoredQuizzes(hostname);
console.log("getQuiz, useCache:", useCache);
// console.log("getQuiz, useCache:", useCache);
if (useCache) return storedQuizzes;
const sakaiQuizzes = await getSakaiQuizzes(hostname, courses);
const merged = mergeEntities<Quiz>(storedQuizzes, sakaiQuizzes);
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const decodeTimestamp = (data: any): number | undefined => {

export const shouldUseCache = (fetchTime: number | undefined, currentTime: number, cacheInterval: number): boolean => {
if (fetchTime === undefined) return false;
console.log(currentTime, fetchTime);
// console.log(currentTime, fetchTime);
return currentTime - fetchTime <= cacheInterval;
};

Expand Down

0 comments on commit 5f50e51

Please sign in to comment.