fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various fixes and updates
[edumed.git]
/
wtem
/
models.py
diff --git
a/wtem/models.py
b/wtem/models.py
index
6440e70
..
fbf0928
100644
(file)
--- a/
wtem/models.py
+++ b/
wtem/models.py
@@
-96,8
+96,8
@@
class Submission(models.Model):
def shuffled_exercise_ids(self):
exercise_ids = [e['id'] for e in exercises]
def shuffled_exercise_ids(self):
exercise_ids = [e['id'] for e in exercises]
-
random.seed
(self.random_seed)
- random.shuffle(exercise_ids)
+
seeded_random = random.Random
(self.random_seed)
+
seeded_
random.shuffle(exercise_ids)
return exercise_ids
def current_exercise(self):
return exercise_ids
def current_exercise(self):