Pārlūkot izejas kodu

Fix page title thing again.

tags/v0.1^2
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
5503b2999e
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +4
    -1
      bot/wiki/category.py

+ 4
- 1
bot/wiki/category.py Parādīt failu

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



Notiek ielāde…
Atcelt
Saglabāt