label console messaging

This commit is contained in:
Paul Trowbridge 2019-03-12 17:45:35 -04:00
parent 1b7f8c4f50
commit 284a4abffc
2 changed files with 643 additions and 641 deletions

View File

@ -56,6 +56,7 @@ server.get('/get_pool', bodyParser.json(), function (req, res) {
var path = './route_sql/get_pool.sql';
var callback = function(arg){
sql = arg;
console.log("get pool:");
console.log(req.body.quota_rep);
sql = sql.replace("rep_replace",req.body.quota_rep);
Postgres.FirstRow(sql,[],res)
@ -82,6 +83,7 @@ server.get('/scenario_package', bodyParser.json(), function (req, res) {
var callback = function(arg){
sql = arg;
console.log("get scenario:")
console.log(req.body);
//parse request body into a where clause
for (var i in req.body) {
@ -143,7 +145,7 @@ server.post('/addmonth_v', bodyParser.json(), function (req, res) {
res.send("no body was sent");
return;
}
console.log("volume adjust:");
console.log("add month volume:");
console.log(req.body);
//console.log(args);
sql = sql.replace(new RegExp("scenario = target_scenario",'g'),w);
@ -190,7 +192,7 @@ server.post('/addmonth_vp', bodyParser.json(), function (req, res) {
res.send("no body was sent");
return;
}
console.log("volume adjust:");
console.log("add month volume and price:");
console.log(req.body);
//console.log(args);
sql = sql.replace(new RegExp("where_clause",'g'),w);