fix(about): drop propagation scores stat tile
This commit is contained in:
parent
a0dfdd26af
commit
5e4e75dfb3
1 changed files with 1 additions and 6 deletions
|
|
@ -134,10 +134,6 @@ defmodule MicrowavepropWeb.AboutLive do
|
||||||
<div class="stat-title">Terrain profiles</div>
|
<div class="stat-title">Terrain profiles</div>
|
||||||
<div class="stat-value text-xl">{format_count(@stats.terrain_profiles)}</div>
|
<div class="stat-value text-xl">{format_count(@stats.terrain_profiles)}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="stat bg-base-200 rounded-box">
|
|
||||||
<div class="stat-title">Propagation scores</div>
|
|
||||||
<div class="stat-value text-xl">{format_count(@stats.propagation_scores)}</div>
|
|
||||||
</div>
|
|
||||||
<div class="stat bg-base-200 rounded-box">
|
<div class="stat bg-base-200 rounded-box">
|
||||||
<div class="stat-title">Beacons</div>
|
<div class="stat-title">Beacons</div>
|
||||||
<div class="stat-value text-xl">{format_count(@stats.beacons)}</div>
|
<div class="stat-value text-xl">{format_count(@stats.beacons)}</div>
|
||||||
|
|
@ -233,7 +229,7 @@ defmodule MicrowavepropWeb.AboutLive do
|
||||||
# every About page load is wasteful. We use PostgreSQL's pg_class.reltuples
|
# every About page load is wasteful. We use PostgreSQL's pg_class.reltuples
|
||||||
# estimate — it's maintained by ANALYZE and is accurate to within a few
|
# estimate — it's maintained by ANALYZE and is accurate to within a few
|
||||||
# percent, which is plenty for "big number on a marketing page."
|
# percent, which is plenty for "big number on a marketing page."
|
||||||
@estimate_tables ~w(hrrr_profiles propagation_scores surface_observations)
|
@estimate_tables ~w(hrrr_profiles surface_observations)
|
||||||
|
|
||||||
defp fetch_stats do
|
defp fetch_stats do
|
||||||
%{
|
%{
|
||||||
|
|
@ -244,7 +240,6 @@ defmodule MicrowavepropWeb.AboutLive do
|
||||||
hrrr_profiles: count_estimate("hrrr_profiles"),
|
hrrr_profiles: count_estimate("hrrr_profiles"),
|
||||||
iemre_observations: count_exact("iemre_observations"),
|
iemre_observations: count_exact("iemre_observations"),
|
||||||
terrain_profiles: count_exact("terrain_profiles"),
|
terrain_profiles: count_exact("terrain_profiles"),
|
||||||
propagation_scores: count_estimate("propagation_scores"),
|
|
||||||
beacons: count_exact("beacons"),
|
beacons: count_exact("beacons"),
|
||||||
commercial_samples: count_exact("commercial_samples")
|
commercial_samples: count_exact("commercial_samples")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue