Add checkin code to manifest

This commit is contained in:
James Polley 2018-01-19 15:05:18 +11:00
parent e120f7a691
commit f9066d25d5

View file

@ -1009,7 +1009,7 @@ def manifest(request, form):
lambda i: i.attendee.attendeeprofilebase.attendee_name().lower()
))
headings = ["User ID", "Name", "Paid", "Unpaid", "Refunded"]
headings = ["User ID", "Name", "Checkin", "Paid", "Unpaid", "Refunded"]
def format_items(item_list):
strings = [
@ -1020,10 +1020,14 @@ def manifest(request, form):
output = []
for user in users_by_name:
items = users[user]
if hasattr(user, "checkin") and hasattr(user.checkin, "checkin_code"):
code = user.checkin.checkin_code
else:
code = None
output.append([
user.id,
user.attendee.attendeeprofilebase.attendee_name(),
code,
format_items(items["paid"]),
format_items(items["unpaid"]),
format_items(items["refunded"]),