Parcourir la source

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

Jocelyn Delande il y a 10 ans
Parent
commit
5562bc389e
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      backend.py

+ 3 - 3
backend.py

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