瀏覽代碼

Fix page title thing again.

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
5503b2999e
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      bot/wiki/category.py

+ 4
- 1
bot/wiki/category.py 查看文件

@@ -46,7 +46,10 @@ class Category(Page):
for row in result:
body = row[0].replace("_", " ")
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]))
return members



Loading…
取消
儲存