Skip to content
Snippets Groups Projects
Commit 840f6d50 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add correct header build

parent a2c085fe
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"monetdb": { "monetdb": {
"host": "simcaqdb3.c3sl.ufpr.br", "host": "simcaqdb3.c3sl.ufpr.br",
"port": 50000, "port": 50000,
"dbname": "simcaq_dev3", "dbname": "simcaq_dev4",
"user": "monetdb", "user": "monetdb",
"password":"monetdb", "password":"monetdb",
"nrConnections": "4" "nrConnections": "4"
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"monetdb": { "monetdb": {
"host": "simcaqdb3.c3sl.ufpr.br", "host": "simcaqdb3.c3sl.ufpr.br",
"port": 50000, "port": 50000,
"dbname": "simcaq_dev3", "dbname": "simcaq_dev4",
"user": "monetdb", "user": "monetdb",
"password":"monetdb", "password":"monetdb",
"nrConnections": "4" "nrConnections": "4"
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
"monetdb": { "monetdb": {
"host": "simcaqdb3.c3sl.ufpr.br", "host": "simcaqdb3.c3sl.ufpr.br",
"port": 50000, "port": 50000,
"dbname": "simcaq_dev3", "dbname": "simcaq_dev4",
"user": "monetdb", "user": "monetdb",
"password":"monetdb", "password":"monetdb",
"nrConnections": "4" "nrConnections": "4"
......
...@@ -471,9 +471,9 @@ schoolApp.get('/count', cache('15 day'), rqfCount.parse(), rqfCount.build(), (re ...@@ -471,9 +471,9 @@ schoolApp.get('/count', cache('15 day'), rqfCount.parse(), rqfCount.build(), (re
schoolApp.get('/count/download', (req, res, next) => { schoolApp.get('/count/download', (req, res, next) => {
// first, query the mapping // first, query the mapping
req.sql.from('columns') req.sql.from('mapping_escola')
.field('*') .field('target_name')
.where('table_id = ?', squel.select().field('id').from('tables').where('name=?', 'escola')); .field('name');
next(); next();
}, query, (req, res, next) => { }, query, (req, res, next) => {
req.resetSql(); req.resetSql();
...@@ -482,12 +482,12 @@ schoolApp.get('/count/download', (req, res, next) => { ...@@ -482,12 +482,12 @@ schoolApp.get('/count/download', (req, res, next) => {
let username = req.query.user; let username = req.query.user;
let email = req.query.email; let email = req.query.email;
req.sql.from('escola') req.sql.from('escola').field('*');
.field('*');
let header = ''; let header = '';
req.result.forEach((result) => { req.result.forEach((result) => {
if(header === '') header += result.name; req.sql.field(result.name, result.target_name);
else header = header + ';' + result.name; if(header === '') header += result.target_name;
else header = header + ';' + result.target_name;
}); });
let form = { let form = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment