r82342 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82341‎ | r82342 | r82343 >
Date:17:38, 17 February 2011
Author:diederik
Status:deferred
Tags:
Comment:
Fixed namespace bug.
Modified paths:
  • /trunk/tools/editor_trends/etl/extracter.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/extracter.py
@@ -92,7 +92,8 @@
9393 if len(ns) == 1 and '0' in namespaces:
9494 return {'id': 0, 'name': 'main namespace'}
9595 else:
96 - if ns[0] in namespaces:
 96+ if ns[0] in namespaces.values():
 97+ #print namespaces, title.decode('utf-8'), ns
9798 return {'id': ns[0], 'name': ns[1]}
9899 else:
99100 return False

Status & tagging log