mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-18 23:52:14 +11:00
yeet
This commit is contained in:
parent
1fe361e67d
commit
7e9bc89e00
1 changed files with 20 additions and 20 deletions
18
index.js
18
index.js
|
|
@ -161,7 +161,7 @@ fastify.get(
|
||||||
let final = []
|
let final = []
|
||||||
let final2 = [];
|
let final2 = [];
|
||||||
|
|
||||||
if(log != null){
|
/*if(log != null){
|
||||||
let graphlog = log.reverse();
|
let graphlog = log.reverse();
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -192,6 +192,8 @@ fastify.get(
|
||||||
final2.unshift(["Transaction", "Amount"])
|
final2.unshift(["Transaction", "Amount"])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}*/
|
||||||
for(i = 0; i < log.length; i++){
|
for(i = 0; i < log.length; i++){
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -207,19 +209,17 @@ fastify.get(
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
console.log("begin render " + Date.now());
|
console.log("begin render " + Date.now());
|
||||||
|
|
||||||
let maxgraph = balance + 1000;
|
//let maxgraph = balance + 1000;
|
||||||
let stringgraphdata = JSON.stringify(final2)
|
//let stringgraphdata = JSON.stringify(final2)
|
||||||
console.log(stringgraphdata)
|
//console.log(stringgraphdata)
|
||||||
let graphdata = stringgraphdata.slice(1,stringgraphdata.length-1)
|
//let graphdata = stringgraphdata.slice(1,stringgraphdata.length-1)
|
||||||
res.view("bankf", {
|
res.view("bankf", {
|
||||||
transactionlog: transactionlog,
|
transactionlog: transactionlog,
|
||||||
maxgraph: maxgraph,
|
//maxgraph: maxgraph,
|
||||||
graphdata: graphdata,
|
//graphdata: graphdata,
|
||||||
user: req.session.get("user"),
|
user: req.session.get("user"),
|
||||||
balance: balance,
|
balance: balance,
|
||||||
admin: req.session.get("admin"),
|
admin: req.session.get("admin"),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue