Skip to content

Commit

Permalink
Revert "Workaround incomplete hexbin-to-hexgrid transition (again)"
Browse files Browse the repository at this point in the history
The same fix has been applied by HabitatSeven upstream.

This reverts commit 93a179c.
  • Loading branch information
anthonyfok committed Sep 29, 2022
1 parent 02c589d commit 6fd3759
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions bin/init-db-and-generate-static-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,6 @@ patch_version_php() {
EOF
}

workaround_incomplete_hexbin_to_hexgrid_transition() {
# We currently have 5km "hexbin" and 1km "hexgrid" on riskprofiler.ca
sed -i -f - site/assets/themes/fw-child/resources/js/rp_scenarios.js <<'EOF'
s/shakemap_hexbin/shakemap_hexgrid/
/if (aggregation.agg == '5km') {/a\
tile_url.collection = tile_url.collection.slice(0, -4) + 'bin'
EOF
}

simply_static_site_export() {
set -x
wp cron event schedule 'simply_static_site_export_cron'
Expand Down Expand Up @@ -301,7 +291,6 @@ main() {
get_git_describe
get_api_version
patch_version_php
workaround_incomplete_hexbin_to_hexgrid_transition
simply_static_site_export
fixup_static_site

Expand Down

0 comments on commit 6fd3759

Please sign in to comment.