[Fusionforge-commits] r15594 - branches/Branch_5_1/src/cronjobs

Julien HEYMAN jheyman at fusionforge.org
Tue May 29 15:52:06 CEST 2012


Author: jheyman
Date: 2012-05-29 15:52:05 +0200 (Tue, 29 May 2012)
New Revision: 15594

Modified:
   branches/Branch_5_1/src/cronjobs/calculate_user_metric.php
Log:
Fix user id in calculate_user_metric cronjobs

Modified: branches/Branch_5_1/src/cronjobs/calculate_user_metric.php
===================================================================
--- branches/Branch_5_1/src/cronjobs/calculate_user_metric.php	2012-05-25 19:46:11 UTC (rev 15593)
+++ branches/Branch_5_1/src/cronjobs/calculate_user_metric.php	2012-05-29 13:52:05 UTC (rev 15594)
@@ -76,7 +76,7 @@
 
 foreach(RBACEngine::getInstance()->getUsersByAllowedAction ('project_admin',forge_get_config('peer_rating_group')) as $u) {
 	db_query_params ('INSERT INTO user_metric0 (user_id,times_ranked,avg_raters_importance,avg_rating,metric,percentile,importance_factor) VALUES ($1,5,1.25,3,0,0,1.25)',
-			array (forge_get_config('peer_rating_group'))) ;
+			array ($u->getID())) ;
 	$err .= db_error();
 }
 




More information about the Fusionforge-commits mailing list