Skip to content

Commit

Permalink
Add match/pit form layout in db export (#269)
Browse files Browse the repository at this point in the history
Signed-off-by: JL102 <[email protected]>
  • Loading branch information
JL102 authored Oct 25, 2024
1 parent 2bf6595 commit 1371425
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified .devcontainer/db_export.zip
Binary file not shown.
5 changes: 5 additions & 0 deletions primary/scripts/dbExportStarterData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ function doExportAndArchive() {
.collection('users')
.find(orgKeyInSpecified)
.toArray();
const layout = await dbApp
.collection('layout')
.find(orgKeyAndYearInSpecified)
.toArray();

const events = await dbApp
.collection('events')
Expand Down Expand Up @@ -179,6 +183,7 @@ function doExportAndArchive() {
if (rankings.length > 0) await dbExport.collection('rankings').insertMany(rankings);
if (teams.length > 0) await dbExport.collection('teams').insertMany(teams);
if (roles.length > 0) await dbExport.collection('roles').insertMany(roles);
if (layout.length > 0) await dbExport.collection('layout').insertMany(layout);

// Now, to do some pruning...
console.log('Pruning users that have no scouting assignments...');
Expand Down

0 comments on commit 1371425

Please sign in to comment.