Skip to content

Commit

Permalink
Expand __properties__ logic to clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarianski committed Jul 31, 2017
1 parent 6217295 commit da19aa0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tilequeue/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,11 @@ def convert_source_data_to_feature_layers(rows, layer_data, bounds, zoom):
boundaries_geometry = row.pop('__boundaries_geometry__', None)
assert geometry or boundaries_geometry

common_props = row.pop('__properties__', None) or {}
common_props = row.pop('__properties__', None)
if common_props is None:
# if __properties__ exists but is null in the query, we
# want to normalize that to an empty dict too
common_props = {}

row_props_by_layer = dict(
boundaries=row.pop('__boundaries_properties__', None),
Expand Down

0 comments on commit da19aa0

Please sign in to comment.