Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gmechali committed Feb 6, 2025
1 parent 3f9c26c commit 72ac3ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions server/routes/place/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,12 @@ def is_dev_place_experiment_enabled(place_dcid: str, locale: str,
if not is_feature_enabled(PLACE_PAGE_EXPERIMENT_FEATURE_FLAG):
return False

# Disable dev place experiment for testing
if request_args.get("disable_dev_places") == "true":
return False

# Force dev place experiment for testing
if request_args.get("force_dev_places") == "true":
return True
# Disable dev place experiment for testing
if request_args.get("disable_dev_places") == "true":
return False

# Experiment is enabled for English pages for countries and US states in the experiment group
if locale == 'en' and place_dcid in DEV_PLACE_EXPERIMENT_DCIDS:
Expand Down
2 changes: 1 addition & 1 deletion server/templates/custom_dc/custom/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{{ ("place_category: '{}',"|safe).format(place_category) if place_category is defined else "" }}
{{ ("send_page_view: false,"|safe) if manual_ga_pageview else "" }}
});
</script>
</script>
{% endif %}
<script>
globalThis.FEATURE_FLAGS = {{ config['FEATURE_FLAGS'] | tojson }};
Expand Down

0 comments on commit 72ac3ff

Please sign in to comment.