Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
217 changes: 216 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"mongodb-snapshot": "^1.4.1",
"mongoose": "^7.7.0",
"nodemailer": "^6.9.14",
"sendgrid": "^5.2.3",
"tsc-alias": "^1.8.10",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.5.3",
Expand Down
4 changes: 2 additions & 2 deletions v2/scripts/generate_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def generate_passwords(input_file, output_file):
writer.writerow(row)

if __name__ == "__main__":
input_file = "./csv/points_display/points.csv" # Change this to your input CSV file
output_file = "./csv/points_display/passworded.csv" # Change this to your output CSV file
input_file = "./csv/ccaUsers.csv" # Change this to your input CSV file
output_file = "./csv/passworded.csv" # Change this to your output CSV file

generate_passwords(input_file, output_file)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function convert(s: string): string[] {

async function run() {
await mongoose.connect(process.env.MONGO_URI);
const csvFilePath = "./v2/scripts/csv/ccaData.csv";
const csvFilePath = "./v2/scripts/csv/ccaData_2526.csv";
const fileContent = fs.readFileSync(csvFilePath, { encoding: "utf-8" });

parse(
Expand Down
19 changes: 19 additions & 0 deletions v2/scripts/helpers/cca/createSubcommittee.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* eslint-disable no-console */
import { Cca } from "@/v2/models/cca/cca";
import { CcaSubcommittee } from "@/v2/models/cca/ccaSubcommittee";
import mongoose from "mongoose";

const { env } = process;

async function run() {
await mongoose.connect(env.MONGO_URI);

const cca = await Cca.findOne({ name: "Dance Production" });
await CcaSubcommittee.create({ name: `Assistant Stage Manager`, cca, description: "" });
await CcaSubcommittee.create({ name: `Assistant Production Manager`, cca, description: "" });
console.log(`Finished.`);
}

run();

export {};
Loading