Show More
@@ -148,6 +148,7 b' class RepoModel(BaseModel):' | |||||
148 | qualified=True) |
|
148 | qualified=True) | |
149 |
|
149 | |||
150 | def get_users(self, name_contains=None, limit=20, only_active=True): |
|
150 | def get_users(self, name_contains=None, limit=20, only_active=True): | |
|
151 | ||||
151 | # TODO: mikhail: move this method to the UserModel. |
|
152 | # TODO: mikhail: move this method to the UserModel. | |
152 | query = self.sa.query(User) |
|
153 | query = self.sa.query(User) | |
153 | if only_active: |
|
154 | if only_active: | |
@@ -171,8 +172,9 b' class RepoModel(BaseModel):' | |||||
171 | 'first_name': user.name, |
|
172 | 'first_name': user.name, | |
172 | 'last_name': user.lastname, |
|
173 | 'last_name': user.lastname, | |
173 | 'username': user.username, |
|
174 | 'username': user.username, | |
|
175 | 'email': user.email, | |||
174 | 'icon_link': h.gravatar_url(user.email, 30), |
|
176 | 'icon_link': h.gravatar_url(user.email, 30), | |
175 |
'value_display': h.person(user |
|
177 | 'value_display': h.person(user), | |
176 | 'value': user.username, |
|
178 | 'value': user.username, | |
177 | 'value_type': 'user', |
|
179 | 'value_type': 'user', | |
178 | 'active': user.active, |
|
180 | 'active': user.active, |
General Comments 0
You need to be logged in to leave comments.
Login now