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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paul Milleville
SCODOC_R6A06
Commits
553770f4
Commit
553770f4
authored
3 years ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Fix: affichage coef. APC et version
parent
8a4b26d2
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
app/comp/res_common.py
+1
-3
1 addition, 3 deletions
app/comp/res_common.py
app/models/notes.py
+4
-7
4 additions, 7 deletions
app/models/notes.py
app/scodoc/sco_edit_module.py
+2
-2
2 additions, 2 deletions
app/scodoc/sco_edit_module.py
sco_version.py
+1
-1
1 addition, 1 deletion
sco_version.py
with
8 additions
and
13 deletions
app/comp/res_common.py
+
1
−
3
View file @
553770f4
...
@@ -590,9 +590,7 @@ class ResultatsSemestre(ResultatsCache):
...
@@ -590,9 +590,7 @@ class ResultatsSemestre(ResultatsCache):
if
modimpl
.
id
in
modimpl_ids
:
if
modimpl
.
id
in
modimpl_ids
:
col_id
=
f
"
moy_
{
modimpl
.
module
.
type_abbrv
()
}
_
{
modimpl
.
id
}
_
{
ue
.
id
}
"
col_id
=
f
"
moy_
{
modimpl
.
module
.
type_abbrv
()
}
_
{
modimpl
.
id
}
_
{
ue
.
id
}
"
if
self
.
is_apc
:
if
self
.
is_apc
:
coef
=
self
.
modimpl_coefs_df
[
modimpl
.
id
][
ue
.
id
]
*
(
coef
=
self
.
modimpl_coefs_df
[
modimpl
.
id
][
ue
.
id
]
modimpl
.
module
.
coefficient
or
0.0
)
else
:
else
:
coef
=
modimpl
.
module
.
coefficient
or
0
coef
=
modimpl
.
module
.
coefficient
or
0
bottom_infos
[
"
coef
"
][
col_id
]
=
fmt_note
(
coef
)
bottom_infos
[
"
coef
"
][
col_id
]
=
fmt_note
(
coef
)
...
...
This diff is collapsed.
Click to expand it.
app/models/notes.py
+
4
−
7
View file @
553770f4
...
@@ -72,13 +72,10 @@ class NotesNotesLog(db.Model):
...
@@ -72,13 +72,10 @@ class NotesNotesLog(db.Model):
def
etud_has_notes_attente
(
etudid
,
formsemestre_id
):
def
etud_has_notes_attente
(
etudid
,
formsemestre_id
):
"""
Vrai si cet etudiant a au moins une note en attente dans ce semestre.
"""
Vrai si cet etudiant a au moins une note en attente dans ce semestre.
(ne compte que les notes en attente dans des évaluation avec coef. non nul).
(ne compte que les notes en attente dans des évaluation
s
avec coef. non nul).
"""
"""
# XXX ancienne méthode de notes_table à ré-écrire
cursor
=
db
.
session
.
execute
(
cnx
=
ndb
.
GetDBConnexion
()
"""
SELECT COUNT(*)
cursor
=
cnx
.
cursor
(
cursor_factory
=
ndb
.
ScoDocCursor
)
cursor
.
execute
(
"""
SELECT n.*
FROM notes_notes n, notes_evaluation e, notes_moduleimpl m,
FROM notes_notes n, notes_evaluation e, notes_moduleimpl m,
notes_moduleimpl_inscription i
notes_moduleimpl_inscription i
WHERE n.etudid = %(etudid)s
WHERE n.etudid = %(etudid)s
...
@@ -96,4 +93,4 @@ def etud_has_notes_attente(etudid, formsemestre_id):
...
@@ -96,4 +93,4 @@ def etud_has_notes_attente(etudid, formsemestre_id):
"
code_attente
"
:
scu
.
NOTES_ATTENTE
,
"
code_attente
"
:
scu
.
NOTES_ATTENTE
,
},
},
)
)
return
len
(
cursor
.
fetch
all
())
>
0
return
cursor
.
fetch
one
()[
0
]
>
0
This diff is collapsed.
Click to expand it.
app/scodoc/sco_edit_module.py
+
2
−
2
View file @
553770f4
...
@@ -520,7 +520,7 @@ def module_edit(module_id=None):
...
@@ -520,7 +520,7 @@ def module_edit(module_id=None):
H
=
[
H
=
[
html_sco_header
.
sco_header
(
html_sco_header
.
sco_header
(
page_title
=
"
Modification du module
%(titre)s
"
%
module
,
page_title
=
f
"
Modification du module
{
a_module
.
code
or
a_module
.
titre
or
''
}
"
,
cssstyles
=
[
"
libjs/jQuery-tagEditor/jquery.tag-editor.css
"
],
cssstyles
=
[
"
libjs/jQuery-tagEditor/jquery.tag-editor.css
"
],
javascripts
=
[
javascripts
=
[
"
libjs/jQuery-tagEditor/jquery.tag-editor.min.js
"
,
"
libjs/jQuery-tagEditor/jquery.tag-editor.min.js
"
,
...
@@ -528,7 +528,7 @@ def module_edit(module_id=None):
...
@@ -528,7 +528,7 @@ def module_edit(module_id=None):
"
js/module_tag_editor.js
"
,
"
js/module_tag_editor.js
"
,
],
],
),
),
"""
<h2>Modification du module
%(titre)s
"""
%
module
,
f
"""
<h2>Modification du module
{
a_module
.
code
or
''
}
{
a_module
.
titre
or
''
}
"""
,
"""
(formation %(acronyme)s, version %(version)s)</h2>
"""
%
formation
,
"""
(formation %(acronyme)s, version %(version)s)</h2>
"""
%
formation
,
render_template
(
render_template
(
"
scodoc/help/modules.html
"
,
"
scodoc/help/modules.html
"
,
...
...
This diff is collapsed.
Click to expand it.
sco_version.py
+
1
−
1
View file @
553770f4
# -*- mode: python -*-
# -*- mode: python -*-
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
SCOVERSION
=
"
9.
2
.87
"
SCOVERSION
=
"
9.
1
.87
"
SCONAME
=
"
ScoDoc
"
SCONAME
=
"
ScoDoc
"
...
...
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