diff --git a/isso/templates/admin.mako b/isso/templates/admin.mako
index 3acaf15..eeb5938 100644
--- a/isso/templates/admin.mako
+++ b/isso/templates/admin.mako
@@ -61,7 +61,7 @@
[ 10
| 20
- | All ]
+ | All ]
% for comment in app.db.recent(limit=get('pendinglimit', int), mode=2):
@@ -74,10 +74,10 @@
[10
| 20
- | All]
+ | All]
- % for comment in app.db.recent(limit=get('recentlimit', int), mode=5):
+ % for comment in app.db.recent(limit=get('recentlimit', int) or 20, mode=5):
${make(comment)}
% endfor
diff --git a/specs/test_comment.py b/specs/test_comment.py
index 16933b0..e0ac17d 100644
--- a/specs/test_comment.py
+++ b/specs/test_comment.py
@@ -94,8 +94,8 @@ class TestComments(unittest.TestCase):
def testDeleteWithReference(self):
client = Client(self.app, Response)
- resp = client.post('/1.0/path/new', data=json.dumps(comment(text='First')))
- self.post('/1.0/path/new', data=json.dumps(comment(text='Second', parent=1)))
+ client.post('/1.0/path/new', data=json.dumps(comment(text='First')))
+ client.post('/1.0/path/new', data=json.dumps(comment(text='First', parent=1)))
r = client.delete('/1.0/path/1')
assert r.status_code == 200