Cleanup
parent
68faec1ae8
commit
8e47cd9ea9
|
@ -12,7 +12,6 @@ function getRequests(count,allRequests) {
|
|||
.then(response => response.json())
|
||||
.then(requests => {
|
||||
window.requests = requests;
|
||||
console.log(requests);
|
||||
buildTable();
|
||||
});
|
||||
}
|
||||
|
@ -24,7 +23,6 @@ function buildTable() {
|
|||
if (window.isStreamer) requestsDivHTML += '<th class="request-update">Update</th>'
|
||||
requestsDivHTML += "</tr>";
|
||||
for (request of requests) {
|
||||
console.log(request);
|
||||
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-score">${request.score}</td>`;
|
||||
|
|
|
@ -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
|
||||
processBannedUsers();
|
||||
setTimeout(processBannedUsers,600000+Math.floor(Math.random()*600000))
|
||||
|
||||
app.listen(config.port, () => {
|
||||
console.log(`Listening on port ${config.port}`);
|
||||
|
|
Loading…
Reference in New Issue