Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCODOC_R6A06
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
fbe48090
Commit
fbe48090
authored
3 years ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
typo
parent
4981094f
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/scodoc/sco_cache.py
+2
-2
2 additions, 2 deletions
app/scodoc/sco_cache.py
app/scodoc/sco_synchro_etuds.py
+1
-1
1 addition, 1 deletion
app/scodoc/sco_synchro_etuds.py
with
3 additions
and
3 deletions
app/scodoc/sco_cache.py
+
2
−
2
View file @
fbe48090
...
...
@@ -228,7 +228,7 @@ def invalidate_formsemestre( # was inval_cache(formsemestre_id=None, pdfonly=Fa
if
getattr
(
g
,
"
defer_cache_invalidation
"
,
False
):
g
.
sem_to_invalidate
.
add
(
formsemestre_id
)
return
log
(
"
inval_cache, formsemestre_id={formsemestre_id} pdfonly={pdfonly}
"
)
log
(
f
"
inval_cache, formsemestre_id=
{
formsemestre_id
}
pdfonly=
{
pdfonly
}
"
)
if
formsemestre_id
is
None
:
# clear all caches
log
(
"
----- invalidate_formsemestre: clearing all caches -----
"
)
...
...
@@ -272,7 +272,7 @@ def invalidate_formsemestre( # was inval_cache(formsemestre_id=None, pdfonly=Fa
SemBulletinsPDFCache
.
invalidate_sems
(
formsemestre_ids
)
class
Def
f
eredSemCacheManager
:
class
Defe
r
redSemCacheManager
:
"""
Contexte pour effectuer des opérations indépendantes dans la
même requete qui invalident le cache. Par exemple, quand on inscrit
des étudiants un par un à un semestre, chaque inscription va invalider
...
...
This diff is collapsed.
Click to expand it.
app/scodoc/sco_synchro_etuds.py
+
1
−
1
View file @
fbe48090
...
...
@@ -252,7 +252,7 @@ def formsemestre_synchro_etuds(
etudids_a_desinscrire
=
[
nip2etudid
(
x
)
for
x
in
a_desinscrire
]
etudids_a_desinscrire
+=
a_desinscrire_without_key
#
with
sco_cache
.
Def
f
eredSemCacheManager
():
with
sco_cache
.
Defe
r
redSemCacheManager
():
do_import_etuds_from_portal
(
sem
,
a_importer
,
etudsapo_ident
)
sco_inscr_passage
.
do_inscrit
(
sem
,
etudids_a_inscrire
)
sco_inscr_passage
.
do_desinscrit
(
sem
,
etudids_a_desinscrire
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment