add a part list and log sql statements
This commit is contained in:
parent
b6464e51b9
commit
5245bfac74
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ npm-debug.log
|
|||||||
logs.html
|
logs.html
|
||||||
stat.html
|
stat.html
|
||||||
*.pem
|
*.pem
|
||||||
|
node.log
|
9
index.js
9
index.js
@ -162,7 +162,6 @@ server.post('/addmonth_v', bodyParser.json(), function (req, res) {
|
|||||||
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
||||||
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
||||||
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
||||||
//console.log(sql);
|
|
||||||
console.log(sql)
|
console.log(sql)
|
||||||
Postgres.FirstRow(sql,[],res)
|
Postgres.FirstRow(sql,[],res)
|
||||||
}
|
}
|
||||||
@ -196,7 +195,7 @@ server.post('/addmonth_vp', bodyParser.json(), function (req, res) {
|
|||||||
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
||||||
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
||||||
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
||||||
//console.log(sql);
|
console.log(sql);
|
||||||
Postgres.FirstRow(sql,[],res)
|
Postgres.FirstRow(sql,[],res)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -236,7 +235,7 @@ server.post('/scale_v', bodyParser.json(), function (req, res) {
|
|||||||
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
||||||
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
||||||
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
||||||
//console.log(sql);
|
console.log(sql);
|
||||||
Postgres.FirstRow(sql,[],res)
|
Postgres.FirstRow(sql,[],res)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -276,7 +275,7 @@ server.post('/scale_p', bodyParser.json(), function (req, res) {
|
|||||||
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
||||||
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
||||||
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
||||||
//console.log(sql);
|
console.log(sql);
|
||||||
Postgres.FirstRow(sql,[],res)
|
Postgres.FirstRow(sql,[],res)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -317,7 +316,7 @@ server.post('/scale_vp', bodyParser.json(), function (req, res) {
|
|||||||
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
sql = sql.replace(new RegExp("replace_version",'g'),req.body.scenario.version);
|
||||||
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
sql = sql.replace(new RegExp("replace_source",'g'),req.body.source);
|
||||||
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
sql = sql.replace(new RegExp("replace_iterdef",'g'),JSON.stringify(req.body));
|
||||||
//console.log(sql);
|
console.log(sql);
|
||||||
Postgres.FirstRow(sql,[],res)
|
Postgres.FirstRow(sql,[],res)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user