Version 14.108.1

This commit is contained in:
Antonio Cañas Vargas 2015-04-03 14:32:21 +02:00
parent 308a722d85
commit 3775f10caa
3 changed files with 7 additions and 6 deletions

View File

@ -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)

View File

@ -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
/*****************************************************************************/

View File

@ -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"