From 4163b13b04e87d0b9bfb5da8280550b4a5060cd8 Mon Sep 17 00:00:00 2001 From: t123yh Date: Mon, 28 Aug 2017 19:12:18 +0800 Subject: [PATCH] Remove verbose logs. --- models/rating_calculation.js | 1 - modules/user.js | 1 - views/util.ejs | 1 - 3 files changed, 3 deletions(-) diff --git a/models/rating_calculation.js b/models/rating_calculation.js index 72f9ab8..8584328 100644 --- a/models/rating_calculation.js +++ b/models/rating_calculation.js @@ -57,7 +57,6 @@ class RatingCalculation extends Model { for (const history of histories) { await history.loadRelationships(); const user = history.user; - console.log("Destroying history for user " + user.id); await history.destroy(); const ratingItem = (await RatingHistory.findOne({ where: { user_id: user.id }, diff --git a/modules/user.js b/modules/user.js index acbe69f..969155b 100644 --- a/modules/user.js +++ b/modules/user.js @@ -26,7 +26,6 @@ app.get('/ranklist', async (req, res) => { try { const sort = req.query.sort || syzoj.config.sorting.ranklist.field; const order = req.query.order || syzoj.config.sorting.ranklist.order; - console.log("SORT ===> " + sort + ", ORDER ===> " + order); if (!['ac_num', 'rating', 'id', 'username'].includes(sort) || !['asc', 'desc'].includes(order)) { throw new ErrorMessage('错误的排序参数。'); } diff --git a/views/util.ejs b/views/util.ejs index 13c9a81..d828474 100644 --- a/views/util.ejs +++ b/views/util.ejs @@ -9,7 +9,6 @@ const getOrderString = function(order) { } this.createSortableTitle = function(item, display, defaultOrder) { const isCurrent = curSort === item; - console.log(isCurrent ? (!curOrder) : defaultOrder) const url = syzoj.utils.makeUrl(req, Object.assign({}, req.query, { sort: item,