Skip to content

Commit

Permalink
fix price on import (#193)
Browse files Browse the repository at this point in the history
* trim email and ticket number in case

* Fix price scale on import (#192)

---------

Co-authored-by: Adam Bardsley <[email protected]>
  • Loading branch information
connorkm2 and bardsley authored Oct 8, 2024
1 parent e5a7d6b commit 164b41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/import_tickets/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def lambda_handler(event, context):
options = data['options']

for attendee in attendees:
line_items = get_line_items(attendee['passes'], attendee['unit_amount']*100)
line_items = get_line_items(attendee['passes'], attendee['unit_amount'])
ticket_number = str(attendee['ticket_number']) if attendee['ticket_number'] is not None else str(get_ticket_number(attendee['email'], attendee['student_ticket']))
purchased_at = int(time.mktime(datetime.strptime(attendee['purchased_at'], '%Y-%m-%dT%H:%M:%S.000Z').timetuple()))
input = {
Expand Down

0 comments on commit 164b41e

Please sign in to comment.