mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-05 00:05:23 +02:00
Version 20.78.2: May 20, 2021 Code formatting in games and matches.
This commit is contained in:
parent
a6dae83d81
commit
b206217046
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
#define _GNU_SOURCE // For asprintf
|
#define _GNU_SOURCE // For asprintf
|
||||||
#include <stdio.h> // For asprintf
|
#include <stdio.h> // For asprintf
|
||||||
|
#include <stdlib.h> // For free
|
||||||
|
|
||||||
#include "swad_agenda.h"
|
#include "swad_agenda.h"
|
||||||
#include "swad_agenda_database.h"
|
#include "swad_agenda_database.h"
|
||||||
|
|
|
@ -602,13 +602,14 @@ TODO: FIX BUG, URGENT! En las fechas como par
|
||||||
|
|
||||||
TODO: En las encuestas, que los estudiantes no puedan ver los resultados hasta que no finalice el plazo.
|
TODO: En las encuestas, que los estudiantes no puedan ver los resultados hasta que no finalice el plazo.
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 20.78.1 (2021-05-20)"
|
#define Log_PLATFORM_VERSION "SWAD 20.78.2 (2021-05-20)"
|
||||||
#define CSS_FILE "swad20.45.css"
|
#define CSS_FILE "swad20.45.css"
|
||||||
#define JS_FILE "swad20.69.1.js"
|
#define JS_FILE "swad20.69.1.js"
|
||||||
/*
|
/*
|
||||||
TODO: Rename CENTRE to CENTER in help wiki.
|
TODO: Rename CENTRE to CENTER in help wiki.
|
||||||
TODO: Rename ASSESSMENT.Announcements to ASSESSMENT.Calls_for_exams
|
TODO: Rename ASSESSMENT.Announcements to ASSESSMENT.Calls_for_exams
|
||||||
|
|
||||||
|
Version 20.78.2: May 20, 2021 Code formatting in games and matches. (311326 lines)
|
||||||
Version 20.78.1: May 20, 2021 Fixed bug in matches. Reported by Jesús Garrido Alcázar. (311317 lines)
|
Version 20.78.1: May 20, 2021 Fixed bug in matches. Reported by Jesús Garrido Alcázar. (311317 lines)
|
||||||
Version 20.78: May 19, 2021 New module swad_chat_database for database queries related to chat. (311327 lines)
|
Version 20.78: May 19, 2021 New module swad_chat_database for database queries related to chat. (311327 lines)
|
||||||
Version 20.77: May 18, 2021 New module swad_banner_database for database queries related to banners. (311249 lines)
|
Version 20.77: May 18, 2021 New module swad_banner_database for database queries related to banners. (311249 lines)
|
||||||
|
|
|
@ -3501,8 +3501,8 @@ static void Fig_GetAndShowGamesStats (void)
|
||||||
double NumGamesPerCourse = 0.0;
|
double NumGamesPerCourse = 0.0;
|
||||||
|
|
||||||
/***** Get the number of games from this location *****/
|
/***** Get the number of games from this location *****/
|
||||||
if ((NumGames = Gam_GetNumGames (Gbl.Scope.Current)))
|
if ((NumGames = Gam_DB_GetNumGames (Gbl.Scope.Current)))
|
||||||
if ((NumCoursesWithGames = Gam_GetNumCoursesWithGames (Gbl.Scope.Current)) != 0)
|
if ((NumCoursesWithGames = Gam_DB_GetNumCoursesWithGames (Gbl.Scope.Current)) != 0)
|
||||||
NumGamesPerCourse = (double) NumGames / (double) NumCoursesWithGames;
|
NumGamesPerCourse = (double) NumGames / (double) NumCoursesWithGames;
|
||||||
|
|
||||||
/***** Begin box and table *****/
|
/***** Begin box and table *****/
|
||||||
|
|
768
swad_game.c
768
swad_game.c
File diff suppressed because it is too large
Load Diff
12
swad_game.h
12
swad_game.h
|
@ -143,7 +143,7 @@ void Gam_RequestCreatOrEditGame (void);
|
||||||
|
|
||||||
void Gam_ReceiveFormGame (void);
|
void Gam_ReceiveFormGame (void);
|
||||||
|
|
||||||
unsigned Gam_GetNumQstsGame (long GamCod);
|
unsigned Gam_DB_GetNumQstsGame (long GamCod);
|
||||||
|
|
||||||
void Gam_ReqSelectQstsToAddToGame (void);
|
void Gam_ReqSelectQstsToAddToGame (void);
|
||||||
void Gam_ListQstsToAddToGame (void);
|
void Gam_ListQstsToAddToGame (void);
|
||||||
|
@ -151,8 +151,8 @@ void Gam_ListQstsToAddToGame (void);
|
||||||
void Gam_PutParamQstInd (unsigned QstInd);
|
void Gam_PutParamQstInd (unsigned QstInd);
|
||||||
unsigned Gam_GetParamQstInd (void);
|
unsigned Gam_GetParamQstInd (void);
|
||||||
long Gam_GetQstCodFromQstInd (long GamCod,unsigned QstInd);
|
long Gam_GetQstCodFromQstInd (long GamCod,unsigned QstInd);
|
||||||
unsigned Gam_GetPrevQuestionIndexInGame (long GamCod,unsigned QstInd);
|
unsigned Gam_DB_GetPrevQuestionIndexInGame (long GamCod,unsigned QstInd);
|
||||||
unsigned Gam_GetNextQuestionIndexInGame (long GamCod,unsigned QstInd);
|
unsigned Gam_DB_GetNextQuestionIndexInGame (long GamCod,unsigned QstInd);
|
||||||
|
|
||||||
void Gam_AddQstsToGame (void);
|
void Gam_AddQstsToGame (void);
|
||||||
|
|
||||||
|
@ -165,9 +165,9 @@ void Gam_MoveDownQst (void);
|
||||||
void Gam_PutButtonNewMatch (struct Gam_Games *Games,long GamCod);
|
void Gam_PutButtonNewMatch (struct Gam_Games *Games,long GamCod);
|
||||||
void Gam_RequestNewMatch (void);
|
void Gam_RequestNewMatch (void);
|
||||||
|
|
||||||
unsigned Gam_GetNumCoursesWithGames (Hie_Lvl_Level_t Scope);
|
unsigned Gam_DB_GetNumCoursesWithGames (Hie_Lvl_Level_t Scope);
|
||||||
unsigned Gam_GetNumGames (Hie_Lvl_Level_t Scope);
|
unsigned Gam_DB_GetNumGames (Hie_Lvl_Level_t Scope);
|
||||||
double Gam_GetNumQstsPerCrsGame (Hie_Lvl_Level_t Scope);
|
double Gam_DB_GetNumQstsPerGame (Hie_Lvl_Level_t Scope);
|
||||||
|
|
||||||
void Gam_ShowTstTagsPresentInAGame (long GamCod);
|
void Gam_ShowTstTagsPresentInAGame (long GamCod);
|
||||||
|
|
||||||
|
|
1451
swad_match.c
1451
swad_match.c
File diff suppressed because it is too large
Load Diff
|
@ -28,6 +28,7 @@
|
||||||
#define _GNU_SOURCE // For asprintf
|
#define _GNU_SOURCE // For asprintf
|
||||||
#include <stddef.h> // For NULL
|
#include <stddef.h> // For NULL
|
||||||
#include <stdio.h> // For asprintf
|
#include <stdio.h> // For asprintf
|
||||||
|
#include <stdlib.h> // For free
|
||||||
#include <string.h> // For string functions
|
#include <string.h> // For string functions
|
||||||
|
|
||||||
#include "swad_box.h"
|
#include "swad_box.h"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user