Browse Source

Fix page title thing again.

tags/v0.1^2
Ben Kurtovic 13 years ago
parent
commit
5503b2999e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      bot/wiki/category.py

+ 4
- 1
bot/wiki/category.py View File

@@ -46,7 +46,10 @@ class Category(Page):
for row in result: for row in result:
body = row[0].replace("_", " ") body = row[0].replace("_", " ")
namespace = self._site.namespace_id_to_name(row[1]) namespace = self._site.namespace_id_to_name(row[1])
title = ":".join((str(namespace), body))
if namespace:
title = ":".join((str(namespace), body))
else: # Avoid doing a silly (albeit valid) ":Pagename" thing
title = body
members.append((title, row[2])) members.append((title, row[2]))
return members return members




Loading…
Cancel
Save