Skip to content

Commit

Permalink
🚑️ DIsable stats on homepage
Browse files Browse the repository at this point in the history
Temporary fix for #1528.
Statistics will be reimplemented correctly ASAP.
  • Loading branch information
jbelien committed Feb 2, 2025
1 parent 2816a3b commit a2013af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Controller/App/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function continent(string $continent): Response

foreach ($regions as $key => &$region) {
$region['lastUpdate'] = $this->provider->getEntity($key)?->getLastUpdate();
$region['count'] = $this->provider->getPercentage($key);
// $region['count'] = $this->provider->getPercentage($key);
}

return $this->render('app/home/region.html.twig', [
Expand Down
4 changes: 2 additions & 2 deletions templates/app/home/region.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
<time datetime="{{ region.lastUpdate|date('c') }}">{{ region.lastUpdate|ago }}</time>
</p>
{% endif %}
{% if region.lastUpdate is defined %}
{# {% if region.lastUpdate is defined %}
<div class="w-full bg-gray-200 rounded-full h-0.5 mt-1">
<div class="bg-gray-600 h-0.5 rounded-full" style="width: {{ region.count.percentage }}%"></div>
</div>
{% endif %}
{% endif %} #}
</a>
</div>
</div>
Expand Down

0 comments on commit a2013af

Please sign in to comment.