Check-in: Do not ask questions that are already answered

This commit is contained in:
Raphael Michel
2019-01-23 16:05:27 +01:00
parent 9ed49888b8
commit 5af99f4f1a

View File

@@ -99,7 +99,7 @@ def perform_checkin(op: OrderPosition, clist: CheckinList, given_answers: dict,
answers = {a.question: a for a in op.answers.all()}
require_answers = []
for q in op.item.checkin_questions:
if q not in given_answers:
if q not in given_answers and q not in answers:
require_answers.append(q)
_save_answers(op, answers, given_answers)