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
6224f37e
Commit
6224f37e
authored
1 year ago
by
Emmanuel Viennet
Browse files
Options
Downloads
Patches
Plain Diff
Export table comptes croisés: fix #934
parent
e877e04c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/scodoc/gen_tables.py
+5
-2
5 additions, 2 deletions
app/scodoc/gen_tables.py
app/scodoc/sco_report.py
+9
-7
9 additions, 7 deletions
app/scodoc/sco_report.py
sco_version.py
+1
-1
1 addition, 1 deletion
sco_version.py
with
15 additions
and
10 deletions
app/scodoc/gen_tables.py
+
5
−
2
View file @
6224f37e
...
@@ -313,9 +313,12 @@ class GenTable:
...
@@ -313,9 +313,12 @@ class GenTable:
T
.
append
(
l
+
[
self
.
bottom_titles
.
get
(
cid
,
""
)
for
cid
in
self
.
columns_ids
])
T
.
append
(
l
+
[
self
.
bottom_titles
.
get
(
cid
,
""
)
for
cid
in
self
.
columns_ids
])
return
T
return
T
def
get_titles_list
(
self
):
def
get_titles_list
(
self
,
with_lines_titles
=
True
):
"
list of titles
"
"
list of titles
"
return
[
self
.
titles
.
get
(
cid
,
""
)
for
cid
in
self
.
columns_ids
]
titles
=
[
self
.
titles
.
get
(
cid
,
""
)
for
cid
in
self
.
columns_ids
]
if
with_lines_titles
:
titles
.
insert
(
0
,
""
)
return
titles
def
gen
(
self
,
fmt
=
"
html
"
,
columns_ids
=
None
):
def
gen
(
self
,
fmt
=
"
html
"
,
columns_ids
=
None
):
"""
Build representation of the table in the specified format.
"""
Build representation of the table in the specified format.
...
...
This diff is collapsed.
Click to expand it.
app/scodoc/sco_report.py
+
9
−
7
View file @
6224f37e
...
@@ -248,8 +248,6 @@ def formsemestre_report(
...
@@ -248,8 +248,6 @@ def formsemestre_report(
result
=
"
codedecision
"
,
result
=
"
codedecision
"
,
category_name
=
""
,
category_name
=
""
,
result_name
=
""
,
result_name
=
""
,
title
=
"
Statistiques
"
,
only_primo
=
None
,
):
):
"""
"""
Tableau sur résultats (result) par type de category bac
Tableau sur résultats (result) par type de category bac
...
@@ -277,9 +275,6 @@ def formsemestre_report(
...
@@ -277,9 +275,6 @@ def formsemestre_report(
f
"
Répartition des résultats par
{
category_name
}
, semestre
{
sem
[
'
titreannee
'
]
}
"
f
"
Répartition des résultats par
{
category_name
}
, semestre
{
sem
[
'
titreannee
'
]
}
"
)
)
tab
.
html_caption
=
f
"
Répartition des résultats par
{
category_name
}
.
"
tab
.
html_caption
=
f
"
Répartition des résultats par
{
category_name
}
.
"
tab
.
base_url
=
"
%s?formsemestre_id=%s
"
%
(
request
.
base_url
,
formsemestre_id
)
if
only_primo
:
tab
.
base_url
+=
"
&only_primo=on
"
return
tab
return
tab
...
@@ -326,8 +321,15 @@ def formsemestre_report_counts(
...
@@ -326,8 +321,15 @@ def formsemestre_report_counts(
category
=
category
,
category
=
category
,
result
=
result
,
result
=
result
,
category_name
=
category_name
,
category_name
=
category_name
,
title
=
title
,
)
only_primo
=
only_primo
,
tab
.
base_url
=
url_for
(
"
notes.formsemestre_report_counts
"
,
scodoc_dept
=
g
.
scodoc_dept
,
formsemestre_id
=
formsemestre_id
,
category
=
category
,
only_primo
=
int
(
bool
(
only_primo
)),
result
=
result
,
group_ids
=
group_ids
,
)
)
if
len
(
formsemestre
.
inscriptions
)
==
0
:
if
len
(
formsemestre
.
inscriptions
)
==
0
:
F
=
[
"""
<p><em>Aucun étudiant</em></p>
"""
]
F
=
[
"""
<p><em>Aucun étudiant</em></p>
"""
]
...
...
This diff is collapsed.
Click to expand it.
sco_version.py
+
1
−
1
View file @
6224f37e
# -*- mode: python -*-
# -*- mode: python -*-
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
SCOVERSION
=
"
9.6.97
7
"
SCOVERSION
=
"
9.6.97
8
"
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