X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=bin%2Fcron%2Fcheckdb.php;h=cbd7350aba44cae7f881c68846ac5c7216dac5fe;hb=b53b9de75a3240e36c52b42cd8334664040dc776;hp=fa9ae8d6a18d6815bd49261a25a62c5dc520aa51;hpb=b209d2bb3880141c51e4a5637b57635ee00e1d1a;p=platal.git diff --git a/bin/cron/checkdb.php b/bin/cron/checkdb.php index fa9ae8d..cbd7350 100755 --- a/bin/cron/checkdb.php +++ b/bin/cron/checkdb.php @@ -1,7 +1,7 @@ #!/usr/bin/php5 -q = DATE_SUB(CURRENT_DATE, INTERVAL 7 DAY) + GROUP BY a.hruid + ) AS profile_views + WHERE nb_profiles >= 100 + ORDER BY nb_profiles DESC", + "Camarades ayant consulté plus de 100 fiches au cours des 7 derniers jours."); + +// Counts empty profile fields that should never be empty. +infoCountEmpty('profile_addresses', 'type'); +infoCountEmpty('profile_phones', 'link_type'); +infoCountEmpty('profile_addresses', 'text'); +infoCountEmpty('profile_addresses', 'postalText'); +infoCountEmpty('profile_education', 'eduid'); +infoCountEmpty('profile_education', 'degreeid'); +infoCountEmpty('profile_job', 'jobid'); +infoCountEmpty('profile_mentor', 'expertise'); +infoCountEmpty('profile_networking', 'address'); +infoCountEmpty('profile_phones', 'search_tel'); +infoCountEmpty('profile_phones', 'display_tel'); + // XXX: counts the number of remaining issues due to the merge (to be removed once all merge related issues have been fixed) -info('SELECT COUNT(*) - FROM profile_merge_issues - WHERE issues IS NULL OR issues = \'\'', - 'Dénombre les erreurs dues à la fusion restantes.', - true); +infoCountEmpty('profile_merge_issues', 'issues', true); // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>