r85319 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85318‎ | r85319 | r85320 >
Date:08:28, 4 April 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
altered keys to 'edit' object to be strings as Mongo collections are indexed by string keys
Modified paths:
  • /trunk/tools/editor_trends/analyses/plugins/taxonomy_burnout.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/analyses/plugins/taxonomy_burnout.py
@@ -12,7 +12,7 @@
1313 http://www.fsf.org/licenses/gpl.html
1414 '''
1515
16 -__author__ = '''\n'''.join(['Diederik van Liere (dvanliere@gmail.com)', ])
 16+__author__ = '''\n'''.join(['Ryan Faulkner (rfaulkner@wikimedia.org)', ])
1717 __email__ = 'dvanliere at gmail dot com'
1818 __date__ = '2011-01-25'
1919 __version__ = '0.1'
@@ -29,10 +29,10 @@
3030
3131 for year in xrange(new_wikipedian.year, var.max_year):
3232 for month in xrange(1, 13):
33 - if edits[year][month] > 249:
 33+ if edits[str(year)][str(month)] > 249:
3434 burnout = True
3535 if burnout == True:
36 - sum += edits[year][month]
 36+ sum += edits[str(year)][str(month)]
3737 count +=1.0
3838
3939 if sum / count < 10 and burnout == True: