Commit cc0236fabdc2cb5e290c4a02861a30078bf325c3
1 parent
8a4805d2
Exists in
master
and in
39 other branches
Removing a few variables on accounts search_indexes
Showing
1 changed file
with
4 additions
and
9 deletions
Show diff stats
src/accounts/search_indexes.py
| @@ -47,16 +47,11 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable): | @@ -47,16 +47,11 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable): | ||
| 47 | def prepare(self, obj): | 47 | def prepare(self, obj): |
| 48 | prepared_data = super(UserIndex, self).prepare(obj) | 48 | prepared_data = super(UserIndex, self).prepare(obj) |
| 49 | 49 | ||
| 50 | - message_count = self.prepared_data['message_count'] | ||
| 51 | - changeset_count = self.prepared_data['changeset_count'] | ||
| 52 | - ticket_count = self.prepared_data['ticket_count'] | ||
| 53 | - wiki_count = self.prepared_data['wiki_count'] | ||
| 54 | - | ||
| 55 | prepared_data['contribution_count'] = sum(( | 50 | prepared_data['contribution_count'] = sum(( |
| 56 | - message_count, | ||
| 57 | - changeset_count, | ||
| 58 | - ticket_count, | ||
| 59 | - wiki_count | 51 | + self.prepared_data['message_count'], |
| 52 | + self.prepared_data['changeset_count'], | ||
| 53 | + self.prepared_data['ticket_count'], | ||
| 54 | + self.prepared_data['wiki_count'] | ||
| 60 | )) | 55 | )) |
| 61 | 56 | ||
| 62 | return prepared_data | 57 | return prepared_data |