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

Some patients missing an entry in the Site table #1171

Open
mbarton opened this issue Jan 15, 2025 · 1 comment
Open

Some patients missing an entry in the Site table #1171

mbarton opened this issue Jan 15, 2025 · 1 comment

Comments

@mbarton
Copy link
Member

mbarton commented Jan 15, 2025

11 patients affected. Affected patients were part of the initial import and last updated 00:50-01:30 2024-06-08.

Not sure how it happened but we should find out which organisation they are supposed to be a part of and put them back.

None of them have completed registration so this is unlikely to affect our data analysis for cohort 6.

@mbarton
Copy link
Member Author

mbarton commented Jan 15, 2025

You also get an error if you try and edit the URL to view them:

Internal Server Error: /case/758/register

AttributeError at /case/758/register
'NoneType' object has no attribute 'organisation'

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/epilepsy12/decorator.py", line 407, in wrapper
    return view(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/django/contrib/auth/decorators.py", line 60, in _view_wrapper
    return view_func(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/epilepsy12/decorator.py", line 309, in wrapper
    return view(request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/epilepsy12/views/registration_views.py", line 154, in register
    "organisation_id": lead_site.organisation.pk,
                       ^^^^^^^^^^^^^^^^^^^^^^

Exception Type: AttributeError at /case/758/register
Exception Value: 'NoneType' object has no attribute 'organisation'
Raised during: epilepsy12.decorator.wrapper

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

No branches or pull requests

1 participant