forked from ScoDoc/ScoDoc
Fix: invalidation cache sur modif evaluation
This commit is contained in:
parent
eaa57d0eb7
commit
b673ca2667
@ -45,6 +45,7 @@ from app.scodoc.sco_utils import ModuleType
|
||||
from app.scodoc.sco_exceptions import ScoValueError
|
||||
from app.scodoc.TrivialFormulator import TrivialFormulator
|
||||
from app.scodoc import html_sco_header
|
||||
from app.scodoc import sco_cache
|
||||
from app.scodoc import sco_evaluations
|
||||
from app.scodoc import sco_moduleimpl
|
||||
from app.scodoc import sco_preferences
|
||||
@ -382,4 +383,5 @@ def evaluation_create_form(
|
||||
evaluation.set_ue_poids(ue, tf[2][f"poids_{ue.id}"])
|
||||
db.session.add(evaluation)
|
||||
db.session.commit()
|
||||
sco_cache.invalidate_formsemestre(evaluation.moduleimpl.formsemestre.id)
|
||||
return flask.redirect(dest_url)
|
||||
|
@ -23,5 +23,12 @@
|
||||
height: calc(100% - 44px) !important;
|
||||
}
|
||||
.toastui-calendar-week-view-day-names, .toastui-calendar-time {
|
||||
overflow: hidden !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
.ic-arrow-line-left {
|
||||
background: url('../icons/ic-arrow-line-left.png') no-repeat;
|
||||
}
|
||||
.ic-arrow-line-right {
|
||||
background: url('../icons/ic-arrow-line-right.png') no-repeat;
|
||||
}
|
||||
|
@ -13,6 +13,19 @@
|
||||
<div class="tab-content">
|
||||
<h2>Expérimental: emploi du temps</h2>
|
||||
|
||||
<div>
|
||||
<span id="menu-navi">
|
||||
<button type="button" class="btn btn-default btn-sm move-today"
|
||||
data-action="move-today">Aujourd'hui</button>
|
||||
<button type="button" class="btn btn-default btn-sm move-day" data-action="move-prev">
|
||||
<i class="calendar-icon ic-arrow-line-left" data-action="move-prev"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-default btn-sm move-day" data-action="move-next">
|
||||
<i class="calendar-icon ic-arrow-line-right" data-action="move-next"></i>
|
||||
</button>
|
||||
</span>
|
||||
<span id="renderRange" class="render-range"></span>
|
||||
</div>
|
||||
<div id="calendar" style="height: calc(100vh - 180px);"></div>
|
||||
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user