diff options
| author | 2016-09-29 23:36:25 +0200 | |
|---|---|---|
| committer | 2016-09-29 23:36:25 +0200 | |
| commit | c35111fe53ba2081abc735cb61e83987ade5ce86 (patch) | |
| tree | 6963ff713fca5f36747596dc0a955ef2ec6205d1 /app/Models/StatsDAOSQLite.php | |
| parent | dbc68590da1d95c249f780e2d3ff4707f6f504e9 (diff) | |
Fix SQLite
Diffstat (limited to 'app/Models/StatsDAOSQLite.php')
| -rw-r--r-- | app/Models/StatsDAOSQLite.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/StatsDAOSQLite.php b/app/Models/StatsDAOSQLite.php index ec0cfa81a..6cfc20463 100644 --- a/app/Models/StatsDAOSQLite.php +++ b/app/Models/StatsDAOSQLite.php @@ -2,6 +2,10 @@ class FreshRSS_StatsDAOSQLite extends FreshRSS_StatsDAO { + protected function sqlFloor($s) { + return "CAST(($s) AS INT)"; + } + protected function calculateEntryRepartitionPerFeedPerPeriod($period, $feed = null) { if ($feed) { $restrict = "WHERE e.id_feed = {$feed}"; @@ -26,7 +30,7 @@ SQL; $repartition[(int) $value['period']] = (int) $value['count']; } - return $this->convertToSerie($repartition); + return $repartition; } } |
