Skip to content

Commit

Permalink
Old PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
Petah committed Sep 3, 2020
1 parent 2e1c7bb commit 98fa057
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debug/rankings.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function readRankings($file)
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<div class="container-fluid">
<div class="row">
<?php foreach (glob(__DIR__ . '/../scrapes/*.json') as $file) : ?>
<?php [$labels, $datasets, $label] = readRankings($file); ?>
<?php foreach (glob(__DIR__ . '/../scrapes/*.json') as $file): ?>
<?php list($labels, $datasets, $label) = readRankings($file); ?>
<div class="col-lg-4">
<canvas id="<?= $label; ?>" width="400" height="400"></canvas>
</div>
Expand Down

0 comments on commit 98fa057

Please sign in to comment.