Bumped up # of events per API to 100 instead of 25

This commit is contained in:
Pliable Pixels
2015-08-07 16:25:48 -04:00
parent 38799050ef
commit 2b0a975fef

View File

@@ -37,7 +37,16 @@ class EventsController extends AppController {
'fields' => array('Name', 'Value')
));
$this->Paginator->settings = array(
'limit' => $limit['ZM_WEB_EVENTS_PER_PAGE'],
// https://github.com/ZoneMinder/ZoneMinder/issues/995
// 'limit' => $limit['ZM_WEB_EVENTS_PER_PAGE'],
// PP - 25 events per page which is what the above
// default is, is way too low for an API
// changing this to 100 so we don't kill ZM
// with many event APIs. In future, we can
// make a nice ZM_API_ITEMS_PER_PAGE for all pagination
// API
'limit' => '100',
'order' => array('StartTime', 'MaxScore'),
'paramType' => 'querystring',
'conditions' => $conditions