summaryrefslogtreecommitdiff
path: root/app/Models/StatsDAOSQLite.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-09-29 23:36:25 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-09-29 23:36:25 +0200
commitc35111fe53ba2081abc735cb61e83987ade5ce86 (patch)
tree6963ff713fca5f36747596dc0a955ef2ec6205d1 /app/Models/StatsDAOSQLite.php
parentdbc68590da1d95c249f780e2d3ff4707f6f504e9 (diff)
Fix SQLite
Diffstat (limited to 'app/Models/StatsDAOSQLite.php')
-rw-r--r--app/Models/StatsDAOSQLite.php6
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;
}
}