Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar_network/db/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'sugar_network/db/index.py')
-rw-r--r--sugar_network/db/index.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sugar_network/db/index.py b/sugar_network/db/index.py
index e9a4093..4de1382 100644
--- a/sugar_network/db/index.py
+++ b/sugar_network/db/index.py
@@ -354,7 +354,9 @@ class IndexWriter(IndexReader):
term_generator.set_document(document)
for name, prop in self._props.items():
- value = guid if prop.slot == 0 else properties[name]
+ value = guid \
+ if prop.slot == 0 \
+ else properties.get(name, prop.default)
if prop.slot is not None:
if prop.typecast in [int, float, bool]: