Skip to content

Commit

Permalink
Fetch only medal results
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Oct 19, 2017
1 parent d8c3417 commit b3a8a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/worldskills_results/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function getSkills($sort = 'name_asc')
public function getResults()
{
// build URL with params
$url = \Config::get('worldskills.api_url', 'https://api.worldskills.org') . '/results/events/' . $this->eventId;
$url = \Config::get('worldskills.api_url', 'https://api.worldskills.org') . '/results/events/' . $this->eventId . '?medal=GOLD&medal=SILVER&medal=BRONZE';

// fetch JSON
$data = \Core::make("helper/file")->getContents($url);
Expand Down

0 comments on commit b3a8a25

Please sign in to comment.