pep-dortmund / member-database

Our member database application
Other
9 stars 1 forks source link

get_participants is broken #190

Closed maxnoe closed 1 year ago

maxnoe commented 1 year ago
Exception on /events/17/participants/ [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/usr/local/lib/python3.10/site-packages/flask_login/utils.py", line 290, in decorated_view
    return current_app.ensure_sync(func)(*args, **kwargs)
  File "/home/memberdb/member_database/authentication/login.py", line 51, in decorated_function
    return func(*args, **kwargs)
  File "/home/memberdb/member_database/events/__init__.py", line 376, in participants
    .execution_options(joinedload(EventRegistration.person))
TypeError: Executable.execution_options() takes 1 positional argument but 2 were given