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:
@@ -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)
|
||||
})
|
||||
|
@@ -137,6 +137,7 @@ function LoadJSON (dataFile) {
|
||||
return r
|
||||
} catch (e) {
|
||||
logger.Log('Error loading sutff', logger.GetColor('redbg'), true)
|
||||
console.log(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user