Quickvote stats script highlight

This commit is contained in:
MrFry 2020-04-20 22:16:53 +02:00
parent cf028489c3
commit 268fdd0e84
4 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -25,7 +25,6 @@
%> bit of a fuckup here <% %> bit of a fuckup here <%
} }
%> %>
ty c:
</div> </div>
</body> </body>
</html> </html>

View file

@ -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" \