feat: added scrapedAt property (#149)
* feat: added scrapedAt property * fix: type-check
This commit is contained in:
@@ -44,6 +44,7 @@ export const ExampleCourse: Course = new Course({
|
||||
status: Status.WAITLISTED,
|
||||
uniqueId: 12345,
|
||||
url: 'https://utdirect.utexas.edu/apps/registrar/course_schedule/20242/12345/',
|
||||
scrapedAt: Date.now(),
|
||||
});
|
||||
export const ExampleCourse2: Course = new Course({
|
||||
courseName: 'PRINCIPLES OF COMPUTER SYSTEMS',
|
||||
@@ -90,6 +91,7 @@ export const ExampleCourse2: Course = new Course({
|
||||
status: Status.WAITLISTED,
|
||||
uniqueId: 67890,
|
||||
url: 'https://utdirect.utexas.edu/apps/registrar/course_schedule/20242/12345/',
|
||||
scrapedAt: Date.now(),
|
||||
});
|
||||
|
||||
const meta = {
|
||||
|
||||
@@ -25,6 +25,7 @@ const generateCourses = (count: number): Course[] => {
|
||||
courseName: 'ELEMS OF COMPTRS/PROGRAMMNG-WB',
|
||||
creditHours: 3,
|
||||
department: 'C S',
|
||||
scrapedAt: Date.now(),
|
||||
description: [
|
||||
'Problem solving and fundamental algorithms for various applications in science, business, and on the World Wide Web, and introductory programming in a modern object-oriented programming language.',
|
||||
'Only one of the following may be counted: Computer Science 303E, 312, 312H. Credit for Computer Science 303E may not be earned after a student has received credit for Computer Science 314, or 314H. May not be counted toward a degree in computer science.',
|
||||
|
||||
@@ -17,6 +17,7 @@ export const ExampleCourse: Course = new Course({
|
||||
courseName: 'ELEMS OF COMPTRS/PROGRAMMNG-WB',
|
||||
creditHours: 3,
|
||||
department: 'C S',
|
||||
scrapedAt: Date.now(),
|
||||
description: [
|
||||
'Problem solving and fundamental algorithms for various applications in science, business, and on the World Wide Web, and introductory programming in a modern object-oriented programming language.',
|
||||
'Only one of the following may be counted: Computer Science 303E, 312, 312H. Credit for Computer Science 303E may not be earned after a student has received credit for Computer Science 314, or 314H. May not be counted toward a degree in computer science.',
|
||||
|
||||
@@ -25,6 +25,7 @@ const exampleGovCourse: Course = new Course({
|
||||
schedule: {
|
||||
meetings: [],
|
||||
},
|
||||
scrapedAt: Date.now(),
|
||||
semester: {
|
||||
code: '12345',
|
||||
season: 'Spring',
|
||||
@@ -43,6 +44,7 @@ const examplePsyCourse: Course = new Course({
|
||||
flags: ['no flag for you >:)'],
|
||||
fullName: 'PSY 317L Yada yada',
|
||||
instructionMode: 'Online',
|
||||
scrapedAt: Date.now(),
|
||||
instructors: [
|
||||
new Instructor({
|
||||
firstName: 'Bevo',
|
||||
|
||||
@@ -55,6 +55,7 @@ export const Default: Story = {
|
||||
year: 2024,
|
||||
season: 'Spring',
|
||||
},
|
||||
scrapedAt: Date.now(),
|
||||
}),
|
||||
meetingIdx: 0,
|
||||
color: 'red',
|
||||
|
||||
@@ -61,6 +61,7 @@ const schedules = [
|
||||
year: 2024,
|
||||
season: 'Fall',
|
||||
},
|
||||
scrapedAt: Date.now(),
|
||||
}),
|
||||
],
|
||||
name: 'Main Schedule',
|
||||
@@ -98,6 +99,7 @@ const schedules = [
|
||||
year: 2024,
|
||||
season: 'Spring',
|
||||
},
|
||||
scrapedAt: Date.now(),
|
||||
}),
|
||||
new Course({
|
||||
uniqueId: 123,
|
||||
@@ -129,6 +131,7 @@ const schedules = [
|
||||
year: 2024,
|
||||
season: 'Fall',
|
||||
},
|
||||
scrapedAt: Date.now(),
|
||||
}),
|
||||
],
|
||||
name: 'Backup #3',
|
||||
|
||||
@@ -17,6 +17,7 @@ export const exampleCourse: Course = new Course({
|
||||
flags: ['Quantitative Reasoning'],
|
||||
fullName: 'C S 303E ELEMS OF COMPTRS/PROGRAMMNG-WB',
|
||||
instructionMode: 'Online',
|
||||
scrapedAt: Date.now(),
|
||||
instructors: [
|
||||
new Instructor({
|
||||
firstName: 'William',
|
||||
@@ -100,6 +101,7 @@ export const bevoCourse: Course = new Course({
|
||||
year: 2024,
|
||||
season: 'Spring',
|
||||
},
|
||||
scrapedAt: Date.now(),
|
||||
});
|
||||
|
||||
export const bevoScheule: UserSchedule = new UserSchedule({
|
||||
@@ -151,6 +153,7 @@ export const MikeScottCS314Course: Course = new Course({
|
||||
year: 2024,
|
||||
season: 'Spring',
|
||||
},
|
||||
scrapedAt: Date.now(),
|
||||
});
|
||||
|
||||
export const MikeScottCS314Schedule: UserSchedule = new UserSchedule({
|
||||
|
||||
Reference in New Issue
Block a user