Skip to content

Commit

Permalink
Merge branch 'meteorite-nj04' into meteorite
Browse files Browse the repository at this point in the history
  • Loading branch information
huyinghuan committed Jan 7, 2014
2 parents 5837014 + 82b31cb commit 68aecaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion eccmeteor/server/startup/initStatisticalList.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ initStatisticalAtStartUp = function(debug){
}
//console.log(list)
for(itemname in list){
var obj =list[itemname];
obj["nIndex"]=itemname;
// console.log(itemname);
// console.log("123333");
if(itemname.indexOf("return") !== -1) continue;
SvseStatisticalresultlist.insert(list[itemname],function(err,r_id){
SvseStatisticalresultlist.insert(obj,function(err,r_id){
if(err){
Log4js.info("插入统计报告"+itemname+"失败",-1);
Log4js.info(err,-1);
Expand Down
4 changes: 3 additions & 1 deletion eccmeteor/server/startup/initTopNList.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ initTopNListAtStartUp = function(debug){
}
//console.log(list)
for(itemname in list){
var obj =list[itemname];
obj["nIndex"]=itemname;
if(itemname.indexOf("return") !== -1) continue;
SvseTopNresultlist.insert(list[itemname],function(err,r_id){
SvseTopNresultlist.insert(obj,function(err,r_id){
if(err){
Log4js.info("插入TopN报告"+itemname+"失败",-1);
Log4js.info(err,-1);
Expand Down

0 comments on commit 68aecaf

Please sign in to comment.