Browse Source

bugfix: privacy settings were inverted while generating public.json :x

Jocelyn Delande 10 years ago
parent
commit
5562bc389e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      backend.py

+ 3 - 3
backend.py

@@ -254,13 +254,13 @@ def build_geojson():
         }
 
         # Add optionnal variables
-        if not row['privacy_name']:
+        if row['privacy_name']:
             public_feature['properties']['name'] = row['name']
 
-        if not row['privacy_comment']:
+        if row['privacy_comment']:
             public_feature['properties']['comment'] = row['comment']
 
-        if not row['privacy_place_details']:
+        if row['privacy_place_details']:
             public_feature['properties']['place'] = {
                 'floor' : row['floor'],
                 'floor_total' : row['floor_total'],