Skip to content

Commit

Permalink
fix data script and build numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
GuyHarwood committed Jan 29, 2019
1 parent baa027b commit d0a9f46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions admin/bin/generate-pupil-data-for-one-school.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ async function main() {
leaCode,
[name]
from [mtc_admin].[school] WHERE id=${schoolId} AND leaCode IS NOT NULL AND estabCode IS NOT NULL`)
console.log(`Generating ${pupilCountPerSchool} pupils for ${school.name}`)
await insertPupils(school, pupilCountPerSchool)
await insertPupils(school[0], pupilCountPerSchool)
} catch (error) {
console.error(error.message)
throw error
Expand All @@ -57,6 +56,7 @@ async function insertPupils(school, count) {
upn
) VALUES`
const pupilData = []
console.log(`Generating ${pupilCountPerSchool} pupils for ${school.name}`)
for (let i = 0; i < count; i++) {
pupilData.push([
`( '${randomDob()}'`,
Expand Down
2 changes: 1 addition & 1 deletion vso-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: $(Build.DefinitionName)-$(date:yyyyMMdd)$(rev:.r)
name: $(date:yyyyMMdd)$(rev:.r)
resources:
- repo: self
clean: true
Expand Down

0 comments on commit d0a9f46

Please sign in to comment.