Index: trunk/tools/editor_trends/etl/transformer.py |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | |
51 | 51 | class Editor: |
52 | 52 | def __init__(self, editor_id, db_raw, db_dataset, **kwargs): |
53 | | - self.id = editor_id |
| 53 | + self.editor_id = editor_id |
54 | 54 | self.db_raw = db_raw |
55 | 55 | self.db_dataset = db_dataset |
56 | 56 | for kw in kwargs: |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | |
62 | 62 | def __call__(self): |
63 | 63 | cutoff = 9 |
64 | | - editor = self.db_raw.find_one('editor', self.id) |
| 64 | + editor = self.db_raw.find_one('editor', self.editor_id) |
65 | 65 | if editor == None: |
66 | 66 | return |
67 | 67 | edits = editor['edits'] |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | first_edit = edits[0]['date'] |
96 | 96 | final_edit = edits[-1]['date'] |
97 | 97 | |
98 | | - data = {'editor': self.id, |
| 98 | + data = {'editor': self.editor_id, |
99 | 99 | 'username': username, |
100 | 100 | 'new_wikipedian': new_wikipedian, |
101 | 101 | 'cum_edit_count': cum_edit_count, |