mirror of https://github.com/acanas/swad-core.git
Version 14.80.14
This commit is contained in:
parent
865582e07f
commit
eba99ccff3
|
@ -103,11 +103,12 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.80.13 (2015/03/09)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.80.14 (2015/03/09)"
|
||||
|
||||
// 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 | tail -1
|
||||
/*
|
||||
Version 14.80.14: Mar 09, 2015 Scope country for statistic of OERs. (179379 lines)
|
||||
Version 14.80.13: Mar 09, 2015 Scope country for statistic of assignments. (179362 lines)
|
||||
Version 14.80.12: Mar 09, 2015 Scope country for statistic of tests. (179340 lines)
|
||||
Version 14.80.11: Mar 09, 2015 Scope country for statistic of notifications. (179267 lines)
|
||||
|
|
|
@ -5410,6 +5410,22 @@ static void Sta_GetNumberOfOERsFromDB (Sco_Scope_t Scope,Brw_License_t License,u
|
|||
" GROUP BY Public",
|
||||
(unsigned) License);
|
||||
break;
|
||||
case Sco_SCOPE_CTY:
|
||||
sprintf (Query,"SELECT files.Public,COUNT(*)"
|
||||
" FROM institutions,centres,degrees,courses,files"
|
||||
" WHERE institutions.CtyCod='%ld'"
|
||||
" AND institutions.InsCod=centres.InsCod"
|
||||
" AND centres.CtrCod=degrees.CtrCod"
|
||||
" AND degrees.DegCod=courses.DegCod"
|
||||
" AND courses.CrsCod=files.Cod"
|
||||
" AND files.FileBrowser IN ('%u','%u')"
|
||||
" AND files.License='%u'"
|
||||
" GROUP BY files.Public",
|
||||
Gbl.CurrentCty.Cty.CtyCod,
|
||||
(unsigned) Brw_ADMI_DOCUM_CRS,
|
||||
(unsigned) Brw_ADMI_SHARE_CRS,
|
||||
(unsigned) License);
|
||||
break;
|
||||
case Sco_SCOPE_INS:
|
||||
sprintf (Query,"SELECT files.Public,COUNT(*)"
|
||||
" FROM centres,degrees,courses,files"
|
||||
|
|
Loading…
Reference in New Issue