mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Quickvote stats script highlight
This commit is contained in:
parent
cf028489c3
commit
268fdd0e84
4 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,7 @@ module.exports = function (options) {
|
||||||
logger.Log('Hostname is undefined!', logger.GetColor('redbg'))
|
logger.Log('Hostname is undefined!', logger.GetColor('redbg'))
|
||||||
console.log(req.body)
|
console.log(req.body)
|
||||||
console.log(req.query)
|
console.log(req.query)
|
||||||
|
console.log(req.headers)
|
||||||
}
|
}
|
||||||
|
|
||||||
// fixme: regexp includes checking
|
// fixme: regexp includes checking
|
||||||
|
|
|
@ -175,7 +175,7 @@ function GetApp () {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!voteData.users.includes(user.id)) {
|
if (!voteData.users.includes(user.id)) {
|
||||||
if (voteData[val]) {
|
if (voteData.votes[val]) {
|
||||||
voteData.votes[val]++
|
voteData.votes[val]++
|
||||||
} else {
|
} else {
|
||||||
voteData.votes[val] = 1
|
voteData.votes[val] = 1
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
%> bit of a fuckup here <%
|
%> bit of a fuckup here <%
|
||||||
}
|
}
|
||||||
%>
|
%>
|
||||||
ty c:
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -95,6 +95,7 @@ function jsonStats () {
|
||||||
-e "s,/install,${P}&${NC},g" \
|
-e "s,/install,${P}&${NC},g" \
|
||||||
-e "s,/irc,${P}&${NC},g" \
|
-e "s,/irc,${P}&${NC},g" \
|
||||||
-e "s,/postfeedback,${P}&${NC},g" \
|
-e "s,/postfeedback,${P}&${NC},g" \
|
||||||
|
-e "s,/quickvote,${P}&${NC},g" \
|
||||||
-e "s,/servergit,${P}&${NC},g" \
|
-e "s,/servergit,${P}&${NC},g" \
|
||||||
-e "s,/scriptgit,${P}&${NC},g" \
|
-e "s,/scriptgit,${P}&${NC},g" \
|
||||||
-e "s,/classesgit,${P}&${NC},g" \
|
-e "s,/classesgit,${P}&${NC},g" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue