---
 ocitysmap2/indexlib/indexer.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ocitysmap2/indexlib/indexer.py b/ocitysmap2/indexlib/indexer.py
index 2702d2d..7e75fe0 100644
--- a/ocitysmap2/indexlib/indexer.py
+++ b/ocitysmap2/indexlib/indexer.py
@@ -213,10 +213,10 @@ class StreetIndex:
         for street_name, linestring in sorted_sl:
             # Create new category if needed
             if (not current_category
-                or not self._i18n.first_letter_equal(street_name[0],
+               or (not self._i18n.first_letter_equal(street_name[0],
                                                      current_category.name)
-                or (current_category.name == commons.NUMBER_CATEGORY_NAME
-                    and not street_name[0] in NUMBER_LIST)):
+                   and (current_category.name != commons.NUMBER_CATEGORY_NAME
+                        or street_name[0] not in NUMBER_LIST))):
                 if street_name[0] in NUMBER_LIST:
                     cat_name = commons.NUMBER_CATEGORY_NAME
                 else:
-- 
1.7.9.1


Reply via email to