diff --git a/swad_changelog.h b/swad_changelog.h index e751c832c..6805072c5 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -103,11 +103,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.108 (2015/04/03)" +#define Log_PLATFORM_VERSION "SWAD 14.108.1 (2015/04/03)" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 /* + Version 14.108.1: Apr 03, 2015 Fixed bug in statistic about institutions. (184137 lines) Version 14.108: Apr 03, 2015 New statistic (figure) about institutions. (184136 lines) Version 14.107.8: Apr 03, 2015 Changes in statistics (figures about hierarchy). (183774 lines) Version 14.107.7: Apr 03, 2015 Changes in layout of sent / received messages. (183753 lines) diff --git a/swad_config.h b/swad_config.h index 9356e2c96..a3e61274b 100644 --- a/swad_config.h +++ b/swad_config.h @@ -28,9 +28,9 @@ /** Uncomment one of the following installations of SWAD or create your own **/ /*****************************************************************************/ -#define LOCALHOST_UBUNTU // Comment this line if not applicable +//#define LOCALHOST_UBUNTU // Comment this line if not applicable //#define OPENSWAD_ORG // Comment this line if not applicable -//#define SWAD_UGR_ES // Comment this line if not applicable +#define SWAD_UGR_ES // Comment this line if not applicable //#define WWW_CEVUNA_UNA_PY // Comment this line if not applicable /*****************************************************************************/ diff --git a/swad_statistic.c b/swad_statistic.c index 811f352e7..57140331a 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -4685,7 +4685,7 @@ static void Sta_GetAndShowInssOrderedByNumUsrsInCrss (void) switch (Gbl.Scope.Current) { case Sco_SCOPE_SYS: - sprintf (Query,"SELECT centres.InsCod,COUNT(*) AS N" + sprintf (Query,"SELECT centres.InsCod,COUNT(DISTINCT crs_usr.UsrCod) AS N" " FROM centres,degrees,courses,crs_usr" " WHERE centres.CtrCod=degrees.CtrCod" " AND degrees.DegCod=courses.DegCod" @@ -4694,7 +4694,7 @@ static void Sta_GetAndShowInssOrderedByNumUsrsInCrss (void) " ORDER BY N DESC"); break; case Sco_SCOPE_CTY: - sprintf (Query,"SELECT centres.InsCod,COUNT(*) AS N" + sprintf (Query,"SELECT centres.InsCod,COUNT(DISTINCT crs_usr.UsrCod) AS N" " FROM institutions,centres,degrees,courses,crs_usr" " WHERE institutions.CtyCod='%ld'" " AND institutions.InsCod=centres.InsCod" @@ -4709,7 +4709,7 @@ static void Sta_GetAndShowInssOrderedByNumUsrsInCrss (void) case Sco_SCOPE_CTR: case Sco_SCOPE_DEG: case Sco_SCOPE_CRS: - sprintf (Query,"SELECT centres.InsCod,COUNT(*) AS N" + sprintf (Query,"SELECT centres.InsCod,COUNT(DISTINCT crs_usr.UsrCod) AS N" " FROM centres,degrees,courses,crs_usr" " WHERE centres.InsCod='%ld'" " AND centres.CtrCod=degrees.CtrCod"