Version20.18.2

This commit is contained in:
acanas 2021-02-09 14:46:46 +01:00
parent 127d01d5ff
commit f0a43e4e43
2 changed files with 8 additions and 4 deletions

View File

@ -553,7 +553,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 20.18.1 (2021-02-09)"
#define Log_PLATFORM_VERSION "SWAD 20.18.2 (2021-02-09)"
#define CSS_FILE "swad20.8.css"
#define JS_FILE "swad20.6.2.js"
/*
@ -600,6 +600,7 @@ TODO: DNI de un estudiante sale err
TODO: BUG: Cuando un tipo de grupo sólo tiene un grupo, inscribirse es voluntario, el estudiante sólo puede pertenecer a un grupo, y se inscribe en él, debería poder desapuntarse. Ahora no puede.
Version 20.18.2: Feb 09, 2021 Code refactoring in timeline. (305104 lines)
Version 20.18.1: Feb 09, 2021 Code refactoring in timeline. (305100 lines)
Version 20.18: Feb 09, 2021 Removed temporary table not used in timeline. (305096 lines)
Version 20.17: Feb 09, 2021 Code refactoring in timeline. (305110 lines)

View File

@ -713,6 +713,9 @@ static void TL_BuildQueryToGetTimeline (struct TL_Timeline *Timeline,
RangePubsToGet.Bottom = 0; // -Infinite
break;
}
/* Create subquery with bottom range of publications to get from tl_pubs.
Bottom publication code remains unchanged in all iterations of the next loop. */
TL_CreateSubQueryRangeBottom (&RangePubsToGet,&SubQueries);
/*
With the current approach, we select one by one
@ -734,9 +737,9 @@ static void TL_BuildQueryToGetTimeline (struct TL_Timeline *Timeline,
NumPub < MaxPubsToGet;
NumPub++)
{
/* Create subqueries with range of publications to get from tl_pubs */
TL_CreateSubQueryRangeBottom (&RangePubsToGet,&SubQueries);
TL_CreateSubQueryRangeTop (&RangePubsToGet,&SubQueries);
/* Create subquery with top range of publications to get from tl_pubs
In each iteration of this loop, top publication code is changed to a lower value */
TL_CreateSubQueryRangeTop (&RangePubsToGet,&SubQueries);
/* Select the most recent publication from tl_pubs */
TL_SelectTheMostRecentPub (&SubQueries,&PubCod,&NotCod);