summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorCruiseDevice2020-09-01 11:54:01 +0530
committerCruiseDevice2020-09-01 11:54:01 +0530
commita80fef3789d970d3db17d72f761fe156fe735259 (patch)
tree30c99e3bae767bc33081e83a287ea44b98fe726d /yaksh/models.py
parentb41cf01f58544a6c71c16bab1854142a3ffc8e03 (diff)
downloadonline_test-a80fef3789d970d3db17d72f761fe156fe735259.tar.gz
online_test-a80fef3789d970d3db17d72f761fe156fe735259.tar.bz2
online_test-a80fef3789d970d3db17d72f761fe156fe735259.zip
Fix tests, Fix PEP8
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 0456b52..eeae4af 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -2311,8 +2311,8 @@ class AnswerPaper(models.Model):
q_a[question].append({
'marks': max([
answer['answer'].marks
- for answer in answers
- if question == answer['answer'].question
+ for answer in answers
+ if question == answer['answer'].question
])
})