Fixed /allqr

This commit is contained in:
MrFry 2020-01-30 08:04:23 +01:00
parent c1560a367d
commit c04ce2e840
2 changed files with 2 additions and 4 deletions

View file

@ -180,11 +180,8 @@ app.get('/menuClick', function (req, res) {
// all questions readable
app.get('/allqr', function (req, res) {
var f = utils.ReadFile(dataFile)
var d = actions.LoadJSON(f)
res.render('allqr', {
d: d.toString().split('\n')
d: data.toString().split('\n')
})
logger.LogReq(req)
})

View file

@ -137,6 +137,7 @@ function LoadJSON (dataFile) {
return r
} catch (e) {
logger.Log('Error loading sutff', logger.GetColor('redbg'), true)
console.log(e)
}
}