Skip to content

Commit

Permalink
implemented zkb only data for api, and upped limit to 1000 per call
Browse files Browse the repository at this point in the history
  • Loading branch information
cvweiss committed Oct 3, 2018
1 parent b8f55c6 commit 1697204
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions classes/Feed.php
Expand Up @@ -15,14 +15,14 @@ public static function getKills($parameters = array())
{
global $debug;

if (isset($parameters['limit']) && $parameters['limit'] > 200) {
$parameters['limit'] = 200;
if (isset($parameters['limit']) && $parameters['limit'] > 1000) {
$parameters['limit'] = 1000;
}
if (isset($parameters['page'])) {
$parameters['limit'] = 200;
$parameters['limit'] = 1000;
}
if (!isset($parameters['limit'])) {
$parameters['limit'] = 200;
$parameters['limit'] = 1000;
}

$kills = Kills::getKills($parameters, true, false);
Expand Down
2 changes: 1 addition & 1 deletion view/api.php
Expand Up @@ -36,7 +36,7 @@
$array = array();
foreach ($return as $json) {
$result = json_decode($json, true);
if (isset($parameters['zkbOnly']) && $parameters['zkbOnly'] == true) {
if (true || (isset($parameters['zkbOnly']) && $parameters['zkbOnly'] == true)) {
if (is_array($result)) {
foreach ($result as $key => $value) {
if ($key != 'killID' && $key != 'zkb' && $key != "killmail_id") {
Expand Down

0 comments on commit 1697204

Please sign in to comment.