Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to order multiple types of tickets at once #6132

Closed
mrsaicharan1 opened this issue Jul 2, 2019 · 0 comments · Fixed by #6133
Closed

Unable to order multiple types of tickets at once #6132

mrsaicharan1 opened this issue Jul 2, 2019 · 0 comments · Fixed by #6133

Comments

@mrsaicharan1
Copy link
Member

mrsaicharan1 commented Jul 2, 2019

Describe the bug
An order which is being placed with multiple types of tickets gives the following error:

  File "/Users/saicharan/Desktop/open-event-server/app/api/helpers/order.py", line 76, in create_pdf_tickets_for_holder
    order_ticket_info = OrderTicket.query.filter_by(order_id=order.id).one()
  File "/usr/local/lib/python3.7/site-packages/sqlalchemy/orm/query.py", line 3284, in one
    "Multiple rows were found for one()"
sqlalchemy.orm.exc.MultipleResultsFound: Multiple rows were found for one()

To Reproduce
Steps to reproduce the behavior:

  1. Go to any event with paid & free tickets
  2. Place an order with paid & free tickets
  3. See error

Expected behavior
The order should go through

Additional context
Working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant