[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Indexer: fix bad logic for condition on 0-9 ind
From: |
Étienne Loks |
Subject: |
[Maposmatic-dev] [PATCH] Indexer: fix bad logic for condition on 0-9 index |
Date: |
Tue, 3 Apr 2012 21:25:32 +0200 |
---
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
- [Maposmatic-dev] [PATCH] Indexer: fix bad logic for condition on 0-9 index,
Étienne Loks <=