Commit 55a760a54e1e49b74c980e4cfa79a4b6054c5d9b
- Diff rendering mode:
- inline
- side by side
swtr.py
(5 / 2)
  | |||
247 | 247 | for row in res: | |
248 | 248 | d = row | |
249 | 249 | d['id'] = str(row['_id']) | |
250 | if d['who'] in getUsers(): | ||
251 | d['registered'] = True | ||
250 | try: | ||
251 | if d['who'] in getUsers() || d['author'] in getUsers(): | ||
252 | d['registered'] = True | ||
253 | except KeyError: | ||
254 | pass | ||
252 | 255 | entries.append(d) | |
253 | 256 | return entries | |
254 | 257 |