summaryrefslogtreecommitdiff
path: root/monkey/test.py
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-02-27 16:03:51 +0100
committerAleš Smodiš <aless@guru.si>2015-08-11 14:26:02 +0200
commit901643b3736333a92baefaf029aae28c237c5aab (patch)
tree271c04b8416400e658fbcadc46b3962fe9a823c1 /monkey/test.py
parentf5c4f86ad5ba2d811261de5303091603a58dbc93 (diff)
Exclude admin and test users when analyzing traces
Diffstat (limited to 'monkey/test.py')
-rwxr-xr-xmonkey/test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/monkey/test.py b/monkey/test.py
index abf9bec..83aa0c2 100755
--- a/monkey/test.py
+++ b/monkey/test.py
@@ -30,7 +30,9 @@ pid = int(sys.argv[1])
problem = Problem.objects.get(pk=pid)
aux_code = get_aux_code(user=User.objects.get(pk=1), problem=problem)
-attempts = Attempt.objects.filter(problem=problem)
+attempts = Attempt.objects.filter(problem=problem) \
+ .exclude(user__username='admin') \
+ .exclude(user__username='test')
# Load hint database stored in edits.pickle.
edits = tutor_apps.get_app_config('tutor').edits[problem.pk]