Skip to content

Commit

Permalink
Add option to hide spatial filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput committed Sep 29, 2023
1 parent cd9dd07 commit 6e3e215
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bims/management/commands/fix_duplicate_site_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def handle(self, *args, **options):
preferences.SiteSetting.site_code_generator)
for site in sites:
print('Updating {}'.format(site.id))
site_code = generate_site_code(
site_code = generate_site_code(
site,
site.latitude,
site.longitude
Expand Down
4 changes: 3 additions & 1 deletion bims/tasks/location_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def generate_spatial_scale_filter():
location_filter_group_order = (
LocationContextFilterGroupOrder.objects.filter(
filter_id=location_context_filter.id,
group_id=group.id).first()
group_id=group.id,
is_hidden_in_spatial_filter=False
).first()
)

if not location_filter_group_order:
Expand Down

0 comments on commit 6e3e215

Please sign in to comment.