Avviato nuovo sistema statistiche
This commit is contained in:
@@ -393,7 +393,7 @@ class GUIHandler {
|
||||
// $lastsNews = array_merge($lastsNews,$add);
|
||||
// }
|
||||
|
||||
$stats = GlobalVariables::get("dao")->aggregate("StatisticModel",PipelineHelper::getMostViewedOfLastDays(strtotime("-7 days"),5));
|
||||
$stats = GlobalVariables::get("dao")->aggregate("StatisticModel",PipelineHelper::getMostViewedOfLastDays(strtotime("-7 days CET"),5));
|
||||
$idArray = array_map(function ($ele){ return new MongoDB\BSON\ObjectID($ele["_id"]["notizia"]);}, $stats);
|
||||
|
||||
// $lastsNews = GlobalVariables::get("dao")->query("NotiziaModel",
|
||||
|
||||
Reference in New Issue
Block a user