Add notes
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
7f3d4780ff
commit
4ba93fdfa8
@ -20,6 +20,16 @@ async function findByHeadcode(headcode) {
|
||||
const trainData = db.query('timetable', query);
|
||||
return trainData; // Use pis.findByTiplocArray() to return a PIS code alongside the data
|
||||
// eg. {trainData: {}, pis:5001}
|
||||
// Will need to do something like:
|
||||
/* for i in trainData {
|
||||
let tiplocArray = []
|
||||
for ii in i['stops'] {
|
||||
get TIPLOC
|
||||
push TIPLOC to tiplocArray
|
||||
}
|
||||
const pis = pis.findByTiplocArray(tiplocArray)
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
Loading…
Reference in New Issue
Block a user