From 21b2b4eec3b843e89d4cdfb0bd6fae2e18a5c089 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 29 Jul 2013 21:04:12 +0000 Subject: [PATCH] i dont have a clue what even fucking fixed that --- modules/warning/pages.js | 4 +++- views/warning/warnings.jade | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/warning/pages.js b/modules/warning/pages.js index 876250f..0c4cf08 100644 --- a/modules/warning/pages.js +++ b/modules/warning/pages.js @@ -47,16 +47,18 @@ var pages = function(dbot) { }, function(warning) { warnings.push(warning); }, function(err) { + console.log(warnings); async.eachSeries(warnings, function(warning, callback) { dbot.api.users.getUser(warning.warner, function(user) { warning.warner = user.primaryNick; callback(false); }); }, function(err) { + console.log(warnings); res.render('warnings', { 'name': dbot.config.name, 'server': server, - 'warnings': warnings + 'warns': warnings }); }); }); diff --git a/views/warning/warnings.jade b/views/warning/warnings.jade index 2aac88b..a9c8ab6 100644 --- a/views/warning/warnings.jade +++ b/views/warning/warnings.jade @@ -12,7 +12,7 @@ block content th Warner th Reason tbody - each warning, key in warnings + each warning, key in warns tr td #{new Date(warning.time)} td #{warning.warner}