Skip to content

Commit 2be0033

Browse files
committed
Take into account classificator id in mapcss-mapping
1 parent e00d57a commit 2be0033

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libkomwm.py

+5
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,12 @@ def addPattern(dashes):
8080
# Build classificator tree from mapcss-mapping.csv file
8181
types_file = open(os.path.join(ddir, 'types.txt'), "w")
8282

83+
cnt = 1
8384
for row in csv.reader(open(os.path.join(ddir, 'mapcss-mapping.csv')), delimiter=';'):
85+
while int(row[5]) > cnt:
86+
print >> types_file, "mapswithme"
87+
cnt += 1
88+
cnt += 1
8489
cl = row[0].replace("|", "-")
8590
pairs = [i.strip(']').split("=") for i in row[1].split(',')[0].split('[')]
8691
kv = {}

0 commit comments

Comments
 (0)