You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!Configs::getValueAsBool('metrics_enabled')) {
38
+
returnnewStatisticsCheckResource(0, 0);
39
+
}
40
+
41
+
DB::statement('INSERT INTO statistics (photo_id) SELECT photos.id FROM photos LEFT OUTER JOIN statistics ON photos.id = photo_id WHERE statistics.id IS NULL');
42
+
DB::statement('INSERT INTO statistics (album_id) SELECT base_albums.id FROM base_albums LEFT OUTER JOIN statistics ON base_albums.id = album_id WHERE statistics.id IS NULL');
43
+
44
+
return$this->check->get();
45
+
}
46
+
47
+
/**
48
+
* Check how many statistics are missing for photos and albums.
0 commit comments