mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Check-in: Do not ask questions that are already answered
This commit is contained in:
@@ -99,7 +99,7 @@ def perform_checkin(op: OrderPosition, clist: CheckinList, given_answers: dict,
|
|||||||
answers = {a.question: a for a in op.answers.all()}
|
answers = {a.question: a for a in op.answers.all()}
|
||||||
require_answers = []
|
require_answers = []
|
||||||
for q in op.item.checkin_questions:
|
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)
|
require_answers.append(q)
|
||||||
|
|
||||||
_save_answers(op, answers, given_answers)
|
_save_answers(op, answers, given_answers)
|
||||||
|
|||||||
Reference in New Issue
Block a user