r85975 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85974‎ | r85975 | r85976 >
Date:19:03, 13 April 2011
Author:diederik
Status:deferred
Tags:
Comment:
simple sync.
Modified paths:
  • /trunk/tools/editor_trends/etl/extracter.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/extracter.py
@@ -258,7 +258,7 @@
259259 def stream_raw_xml(input_queue, process_id, lock, rts):
260260 t0 = datetime.now()
261261 file_id = 0
262 - if rts.kaggle:
 262+ if not rts.kaggle:
263263 cache = buffer.CSVBuffer(process_id, rts, lock)
264264
265265 while True:
@@ -284,7 +284,7 @@
285285 print 'There are %s files left in the queue' % (input_queue.qsize())
286286 t0 = t1
287287
288 - if rts.kaggle:
 288+ if not rts.kaggle:
289289 cache.close()
290290 cache.summary()
291291