Commit 5a72a0c6f73e35d271bb9ed9f7730fba6478097f

Use DISTINCT when getting all answers
timApp/timdb/answers.py
(1 / 1)
  
141141
142142 c = self.db.cursor()
143143 sql = """
144SELECT u.name, a.task_id, a.content, a.answered_on, n, a.points
144SELECT DISTINCT u.name, a.task_id, a.content, a.answered_on, n, a.points
145145FROM
146146(SELECT {} (a.id) AS id, {} as n
147147FROM answer AS a, userAnswer AS ua, useraccount AS u