Index: trunk/tools/editor_trends/analyses/plugins/taxonomy_burnout.py |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | http://www.fsf.org/licenses/gpl.html |
14 | 14 | ''' |
15 | 15 | |
16 | | -__author__ = '''\n'''.join(['Diederik van Liere (dvanliere@gmail.com)', ]) |
| 16 | +__author__ = '''\n'''.join(['Ryan Faulkner (rfaulkner@wikimedia.org)', ]) |
17 | 17 | __email__ = 'dvanliere at gmail dot com' |
18 | 18 | __date__ = '2011-01-25' |
19 | 19 | __version__ = '0.1' |
— | — | @@ -29,10 +29,10 @@ |
30 | 30 | |
31 | 31 | for year in xrange(new_wikipedian.year, var.max_year): |
32 | 32 | for month in xrange(1, 13): |
33 | | - if edits[year][month] > 249: |
| 33 | + if edits[str(year)][str(month)] > 249: |
34 | 34 | burnout = True |
35 | 35 | if burnout == True: |
36 | | - sum += edits[year][month] |
| 36 | + sum += edits[str(year)][str(month)] |
37 | 37 | count +=1.0 |
38 | 38 | |
39 | 39 | if sum / count < 10 and burnout == True: |