Skip to content

Commit

Permalink
add enrollments and grades to main datapuller
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmwang committed Feb 2, 2025
1 parent 2433619 commit 716ecb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/datapuller/src/pullers/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import setup from "../shared";
import { Config } from "../shared/config";
import updateClasses from "./classes";
import updateCourses from "./courses";
import updateEnrollmentHistories from "./enrollment";
import updateGradeDistributions from "./grade-distributions";
import updateSections from "./sections";

const testDatabaseWrite = async (config: Config) => {
Expand Down Expand Up @@ -51,6 +53,12 @@ const main = async () => {
config.log.info("\n=== UPDATE CLASSES ===");
await updateClasses(config);

config.log.info("\n=== UPDATE ENROLLMENTS ===");
await updateEnrollmentHistories(config);

config.log.info("\n=== UPDATE GRADES ===");
await updateGradeDistributions(config);

config.log.info("\n=== DATA PULLING COMPLETED ===");
} catch (error) {
config.log.error(error);
Expand Down

0 comments on commit 716ecb4

Please sign in to comment.