master
Dessa Simpson 2020-11-01 13:18:18 -07:00
parent 68faec1ae8
commit 8e47cd9ea9
2 changed files with 1 additions and 4 deletions

View File

@ -12,7 +12,6 @@ function getRequests(count,allRequests) {
.then(response => response.json()) .then(response => response.json())
.then(requests => { .then(requests => {
window.requests = requests; window.requests = requests;
console.log(requests);
buildTable(); buildTable();
}); });
} }
@ -24,7 +23,6 @@ function buildTable() {
if (window.isStreamer) requestsDivHTML += '<th class="request-update">Update</th>' if (window.isStreamer) requestsDivHTML += '<th class="request-update">Update</th>'
requestsDivHTML += "</tr>"; requestsDivHTML += "</tr>";
for (request of requests) { for (request of requests) {
console.log(request);
requestsDivHTML += `<tr><td class="request-url"><a href="${request.url}" target="_blank">${request.url}</a></td>\ requestsDivHTML += `<tr><td class="request-url"><a href="${request.url}" target="_blank">${request.url}</a></td>\
<td class="request-requester">${request.imageurl ? `<img src="${request.imageurl}" class="table-userpic"/>` : ''}${request.requester}</td>\ <td class="request-requester">${request.imageurl ? `<img src="${request.imageurl}" class="table-userpic"/>` : ''}${request.requester}</td>\
<td class="request-score">${request.score}</td>`; <td class="request-score">${request.score}</td>`;

View File

@ -343,8 +343,7 @@ async function processBannedUsers() {
setTimeout(processBannedUsers,3600000+Math.floor(Math.random()*900000)) // Run every 1-1.25 hours to balance load setTimeout(processBannedUsers,3600000+Math.floor(Math.random()*900000)) // Run every 1-1.25 hours to balance load
} }
//setTimeout(processBannedUsers,3600000+Math.floor(Math.random()*900000)) // Run every 1-1.25 hours to balance load setTimeout(processBannedUsers,600000+Math.floor(Math.random()*600000))
processBannedUsers();
app.listen(config.port, () => { app.listen(config.port, () => {
console.log(`Listening on port ${config.port}`); console.log(`Listening on port ${config.port}`);