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
ea6307ac
Commit
ea6307ac
authored
4 months ago
by
ilona
Browse files
Options
Downloads
Patches
Plain Diff
WIP: fonctions d'import de semestres monomodules: import des images
parent
fd00e2f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/notes_formsemestre.py
+1
-2
1 addition, 2 deletions
app/views/notes_formsemestre.py
with
1 addition
and
2 deletions
app/views/notes_formsemestre.py
+
1
−
2
View file @
ea6307ac
...
@@ -448,7 +448,6 @@ def _load_images_refs(infos: list[dict], images: dict):
...
@@ -448,7 +448,6 @@ def _load_images_refs(infos: list[dict], images: dict):
"""
Check if all referenced images in excel (infos)
"""
Check if all referenced images in excel (infos)
are present in the zip archive (images) and put them in the infos dicts.
are present in the zip archive (images) and put them in the infos dicts.
"""
"""
breakpoint
()
for
linenum
,
info
in
enumerate
(
infos
,
start
=
1
):
for
linenum
,
info
in
enumerate
(
infos
,
start
=
1
):
for
key
in
(
"
descr_image
"
,
"
descr_photo_ens
"
):
for
key
in
(
"
descr_image
"
,
"
descr_photo_ens
"
):
info
[
key
]
=
(
info
[
key
]
=
(
...
@@ -457,7 +456,7 @@ def _load_images_refs(infos: list[dict], images: dict):
...
@@ -457,7 +456,7 @@ def _load_images_refs(infos: list[dict], images: dict):
if
info
[
key
]:
if
info
[
key
]:
if
info
[
key
]
not
in
images
:
if
info
[
key
]
not
in
images
:
raise
ScoValueError
(
raise
ScoValueError
(
f
"
Image référencée en ligne
{
linenum
}
, colonne
{
key
}
non trouvée dans le zip
"
,
f
'
Image
"
{
info
[
key
]
}
"
référencée en ligne
{
linenum
}
, colonne
{
key
}
non trouvée dans le zip
'
,
dest_url
=
url_for
(
dest_url
=
url_for
(
"
notes.formsemestres_import_from_description
"
,
"
notes.formsemestres_import_from_description
"
,
scodoc_dept
=
g
.
scodoc_dept
,
scodoc_dept
=
g
.
scodoc_dept
,
...
...
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