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'))
|
||||
console.log(req.body)
|
||||
console.log(req.query)
|
||||
console.log(req.headers)
|
||||
}
|
||||
|
||||
// fixme: regexp includes checking
|
||||
|
|
|
@ -175,7 +175,7 @@ function GetApp () {
|
|||
}
|
||||
|
||||
if (!voteData.users.includes(user.id)) {
|
||||
if (voteData[val]) {
|
||||
if (voteData.votes[val]) {
|
||||
voteData.votes[val]++
|
||||
} else {
|
||||
voteData.votes[val] = 1
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
%> bit of a fuckup here <%
|
||||
}
|
||||
%>
|
||||
ty c:
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -95,6 +95,7 @@ function jsonStats () {
|
|||
-e "s,/install,${P}&${NC},g" \
|
||||
-e "s,/irc,${P}&${NC},g" \
|
||||
-e "s,/postfeedback,${P}&${NC},g" \
|
||||
-e "s,/quickvote,${P}&${NC},g" \
|
||||
-e "s,/servergit,${P}&${NC},g" \
|
||||
-e "s,/scriptgit,${P}&${NC},g" \
|
||||
-e "s,/classesgit,${P}&${NC},g" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue