diff options
author | Six <unknown> | 2011-05-19 22:55:29 -0400 |
---|---|---|
committer | Six <unknown> | 2011-05-19 22:55:29 -0400 |
commit | d5201e4da6c17ed10b68039afd5813c63ea40b32 (patch) | |
tree | 15a867d409bb2eba0c1d274f7c8d75e42611e5fe | |
parent | a825456d3a44c21975822e5b5e64e1d3093a3803 (diff) | |
download | d2-d5201e4da6c17ed10b68039afd5813c63ea40b32.tar.bz2 d2-d5201e4da6c17ed10b68039afd5813c63ea40b32.tar.xz d2-d5201e4da6c17ed10b68039afd5813c63ea40b32.zip |
fixed search result bug
-rw-r--r-- | lib/d2/app/adapters/search.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/d2/app/adapters/search.py b/lib/d2/app/adapters/search.py index 693cdda..da5f1e5 100644 --- a/lib/d2/app/adapters/search.py +++ b/lib/d2/app/adapters/search.py | |||
@@ -297,7 +297,7 @@ class SearchAdapter(BaseAdapter): | |||
297 | out.append(self._make_search_result( | 297 | out.append(self._make_search_result( |
298 | row[u'label'], | 298 | row[u'label'], |
299 | row[u'description'], | 299 | row[u'description'], |
300 | row[u'plot_id'], | 300 | row.get(u'plot_id') or None, |
301 | row[u'occupant_id'] | 301 | row.get(u'occupant_id') or None |
302 | )) | 302 | )) |
303 | return out | 303 | return out |