Index: trunk/tools/editor_trends/analyses/plugins/taxonomy_list_makers.py |
— | — | @@ -31,6 +31,8 @@ |
32 | 32 | sys.exit(-1) |
33 | 33 | |
34 | 34 | articles_edited = editor['articles_edited'] |
| 35 | + list_articles = db_articles.find('category', 'List') |
| 36 | + print list_articles |
35 | 37 | count = 0 |
36 | 38 | years = articles_edited.keys() |
37 | 39 | for year in years: |
— | — | @@ -38,9 +40,7 @@ |
39 | 41 | for month in months: |
40 | 42 | articles = articles_edited[year].get(month, []) |
41 | 43 | for article in articles: |
42 | | - article = db_articles.find('id', article) |
43 | | - print article |
44 | | - if article['category'] == 'List': |
| 44 | + if article in list_articles: |
45 | 45 | count += 1 |
46 | 46 | |
47 | 47 | """ Add all editors with an edit count of more than 10 """ |