mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-24 16:25:00 -04:00
Prepare statistics for SQLite
Temporarily disable 30-day statistics for SQLite https://github.com/marienfressinaud/FreshRSS/issues/100 https://github.com/marienfressinaud/FreshRSS/issues/90
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
class FreshRSS_stats_Controller extends Minz_ActionController {
|
||||
|
||||
public function indexAction() {
|
||||
$statsDAO = new FreshRSS_StatsDAO ();
|
||||
$statsDAO = FreshRSS_Factory::createStatsDAO();
|
||||
Minz_View::appendScript (Minz_Url::display ('/scripts/flotr2.min.js?' . @filemtime(PUBLIC_PATH . '/scripts/flotr2.min.js')));
|
||||
$this->view->repartition = $statsDAO->calculateEntryRepartition();
|
||||
$this->view->count = ($statsDAO->calculateEntryCount());
|
||||
@@ -13,7 +13,7 @@ class FreshRSS_stats_Controller extends Minz_ActionController {
|
||||
}
|
||||
|
||||
public function idleAction() {
|
||||
$statsDAO = new FreshRSS_StatsDAO ();
|
||||
$statsDAO = FreshRSS_Factory::createStatsDAO();
|
||||
$feeds = $statsDAO->calculateFeedLastDate();
|
||||
$idleFeeds = array();
|
||||
$now = new \DateTime();
|
||||
|
||||
Reference in New Issue
Block a user