Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenQuizz
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Weber Rodolphe
OpenQuizz
Commits
8b50bc73
Commit
8b50bc73
authored
May 07, 2021
by
Jérémie Passerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction de bug mineurs et nettoyage de l'affichage
parent
09259dcd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
110 deletions
+134
-110
Menu.py
Menu.py
+124
-103
Utils.py
Utils.py
+10
-5
Contenu1
auteur_1/Contenu1
+0
-1
Contenu1
auteur_2/Contenu1
+0
-1
No files found.
Menu.py
View file @
8b50bc73
This diff is collapsed.
Click to expand it.
Utils.py
View file @
8b50bc73
...
...
@@ -119,17 +119,22 @@ class Utils:
# @param auteur l'auteur concerné
@
staticmethod
def
get_contenus_panier
(
auteur
):
c
ontenus
_perso
=
Utils
.
get_contenus
(
auteur
)
c
urseur
_perso
=
Utils
.
get_contenus
(
auteur
)
id_tiers
=
Utils
.
get_contenus_tiers
(
auteur
)
contenus_tiers
=
list
()
contenus_persos
=
list
()
contenus_en_cours
=
list
()
for
(
id
,
version
)
in
id_tiers
:
contenus_tiers
.
append
(
Utils
.
get_contenu_avec_id_et_version
(
int
(
id
[
'contenu'
]),
int
(
version
[
'version'
])))
c
ontenus
_en_cours
=
Utils
.
get_contenus_en_cours
(
auteur
)
c
urseur
_en_cours
=
Utils
.
get_contenus_en_cours
(
auteur
)
print
(
type
(
contenus_perso
))
print
(
type
(
contenus_tiers
))
print
(
type
(
contenus_en_cours
))
for
contenu
in
curseur_perso
:
contenus_persos
.
append
(
contenu
)
for
contenu
in
curseur_en_cours
:
contenus_en_cours
.
append
(
contenu
)
return
contenus_persos
+
contenus_en_cours
+
contenus_tiers
## Consultation de tous les contenus, sans distinction
# (utile temporairement pour la création d'évaluations)
...
...
auteur_1/Contenu1
deleted
100644 → 0
View file @
09259dcd
Bonjour, je suis un contenu 1 dans sa version 1
auteur_2/Contenu1
deleted
100644 → 0
View file @
09259dcd
Bonjour, je suis un contenu 1 dans sa version 1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment