Przeglądaj źródła

Fix page title thing again.

tags/v0.1^2
Ben Kurtovic 12 lat temu
rodzic
commit
5503b2999e
1 zmienionych plików z 4 dodań i 1 usunięć
  1. +4
    -1
      bot/wiki/category.py

+ 4
- 1
bot/wiki/category.py Wyświetl plik

@@ -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



Ładowanie…
Anuluj
Zapisz