Add checkin code to manifest
This commit is contained in:
parent
e120f7a691
commit
f9066d25d5
1 changed files with 6 additions and 2 deletions
|
@ -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"]),
|
||||
|
|
Loading…
Reference in a new issue