Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lapig-dev committed Aug 2, 2023
1 parent 6431815 commit 549261f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions src/server/bin/campaigns_to_correct.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,17 @@ pelatihan_region1_indonesia
pelatihan_region2_indonesia
pelatihan_region3_indonesia
pelatihan_region4_indonesia
validation_region1_indonesia
validation_region2_indonesia
validation_region3_indonesia
validation_region4_indonesia
validation_region5_indonesia
validation_region6_indonesia
validation_region7_indonesia
validation_region8_indonesia
validation_region9_indonesia
validation_region10_indonesia
validation_region11_indonesia
validation_region12_indonesia
validation_region13_indonesia
validation_region14_indonesia
3 changes: 1 addition & 2 deletions src/server/bin/correct_campaign.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
console.log('campaignId', campaignId)
db.getCollection('points').find({'campaign': campaignId}).forEach(function(point) {
const campaign = db.getCollection('campaign').findOne({_id: point.campaign})
const numInspections = db.getCollection('campaign').distinct('numInspec',{'_id': point.campaign})
Expand All @@ -21,4 +20,4 @@ db.getCollection('points').find({'campaign': campaignId}).forEach(function(point
print(' Final number of inspections ' + point.underInspection)
db.getCollection('points').save(point)
}
})
})

0 comments on commit 549261f

Please sign in to comment.