diff options
author | Six <unknown> | 2011-05-19 22:57:12 -0400 |
---|---|---|
committer | Six <unknown> | 2011-05-19 22:57:12 -0400 |
commit | e3ad465ed22d4fb54c30bc6cfd6749ddb36231da (patch) | |
tree | c09f5492d65f12081e26cd566dcfa96edb05c768 | |
parent | d5201e4da6c17ed10b68039afd5813c63ea40b32 (diff) | |
download | d2-e3ad465ed22d4fb54c30bc6cfd6749ddb36231da.tar.bz2 d2-e3ad465ed22d4fb54c30bc6cfd6749ddb36231da.tar.xz d2-e3ad465ed22d4fb54c30bc6cfd6749ddb36231da.zip |
fixed unicode keys for search
-rw-r--r-- | lib/d2/app/adapters/search.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/d2/app/adapters/search.py b/lib/d2/app/adapters/search.py index da5f1e5..034e2c9 100644 --- a/lib/d2/app/adapters/search.py +++ b/lib/d2/app/adapters/search.py | |||
@@ -222,10 +222,10 @@ class SearchAdapter(BaseAdapter): | |||
222 | out = {} | 222 | out = {} |
223 | if details: | 223 | if details: |
224 | context = [details[u'label']] | 224 | context = [details[u'label']] |
225 | out[u'label'] = details[u'label'] | 225 | out['label'] = details[u'label'] |
226 | out[u'plot_id'] = details[u'plot_id'] | 226 | out['plot_id'] = details[u'plot_id'] |
227 | out[u'occupant_id'] = details[u'occupant_id'] | 227 | out['occupant_id'] = details[u'occupant_id'] |
228 | out[u'description'] = details[u'description'] | 228 | out['description'] = details[u'description'] |
229 | if details[u'plot_id']: | 229 | if details[u'plot_id']: |
230 | if u'empty' in out['description'].lower(): | 230 | if u'empty' in out['description'].lower(): |
231 | context.append(u'Empty') | 231 | context.append(u'Empty') |