Added 'foto' and 'verleih' to wrmwcache.py as well.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 29 Dec 2013 11:35:10 +0000 (11:35 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 29 Dec 2013 11:35:10 +0000 (11:35 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@1862 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrmwcache.py

index 12f66e731c7838b3f8d97ab3be90613dadd13a59..05f7e75484b1f1a5800fe45317aae03535a0d6b2 100644 (file)
@@ -183,7 +183,7 @@ def update_wrmapcache(connection):
                 if properties['type'] in wrmwmarkup.WRMAP_POINT_TYPES:
                     lon, lat = coordinates
                     label = properties.get('name')
-                    point_types = {u'gasthaus': u'hut', u'haltestelle': u'busstop', u'parkplatz': u'carpark', u'achtung': u'warning', u'punkt': u'point'}
+                    point_types = {u'gasthaus': u'hut', u'haltestelle': u'busstop', u'parkplatz': u'carpark', u'achtung': u'warning', u'foto': u'photo', u'verleih': u'rental', u'punkt': u'point'}
                     point_type = point_types[properties['type']]
                     sql = u'insert into wrmappointcache (page_id, type, point, label) values (%s, %s, POINT(%s, %s), %s)'
                     connection.execute(sql, (sledrun_page.page_id, point_type, lon, lat, label))