Skip to content

Commit

Permalink
Merge pull request #220 from jeremycline/example-preference
Browse files Browse the repository at this point in the history
Update the preference format for example messages
  • Loading branch information
jeremycline committed Aug 14, 2017
2 parents e157251 + 7b0352a commit d89cf35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fmn/web/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,9 @@ def _make_result(msg, d):
# Mock out a fake 'cached preferences' object like we have in the consumer,
# but really it just consists of the one preferences and its *one* filter
# for which we're trying to find example messages.
preferences = [pref.__json__()]
preferences[0]['detail_values'] = ['mock']
preferences[0]['filters'] = [filter.__json__(reify=True)]
preferences = {'nobody_mock': pref.__json__()}
preferences['nobody_mock']['detail_values'] = ['mock']
preferences['nobody_mock']['filters'] = [filter.__json__(reify=True)]

results = []
for message in messages:
Expand Down

0 comments on commit d89cf35

Please sign in to comment.