mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Fixed /allqr
This commit is contained in:
parent
c1560a367d
commit
c04ce2e840
2 changed files with 2 additions and 4 deletions
|
@ -180,11 +180,8 @@ app.get('/menuClick', function (req, res) {
|
||||||
|
|
||||||
// all questions readable
|
// all questions readable
|
||||||
app.get('/allqr', function (req, res) {
|
app.get('/allqr', function (req, res) {
|
||||||
var f = utils.ReadFile(dataFile)
|
|
||||||
var d = actions.LoadJSON(f)
|
|
||||||
|
|
||||||
res.render('allqr', {
|
res.render('allqr', {
|
||||||
d: d.toString().split('\n')
|
d: data.toString().split('\n')
|
||||||
})
|
})
|
||||||
logger.LogReq(req)
|
logger.LogReq(req)
|
||||||
})
|
})
|
||||||
|
|
|
@ -137,6 +137,7 @@ function LoadJSON (dataFile) {
|
||||||
return r
|
return r
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.Log('Error loading sutff', logger.GetColor('redbg'), true)
|
logger.Log('Error loading sutff', logger.GetColor('redbg'), true)
|
||||||
|
console.log(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue