You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MultipleObjectsReturned: get() returned more than one EventParticipant -- it returned 2!
File "django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)
File "django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "django/views/decorators/cache.py", line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "django/views/generic/base.py", line 68, in view
return self.dispatch(request, *args, **kwargs)
File "django/views/generic/base.py", line 88, in dispatch
return handler(request, *args, **kwargs)
File "django/views/generic/base.py", line 157, in get
context = self.get_context_data(**kwargs)
File "councilmatic_core/views.py", line 159, in get_context_data
context.update(self.extra_context())
File "lametro/views.py", line 52, in extra_context
extra['current_meeting'] = self.event_model.current_meeting()
File "lametro/models.py", line 300, in current_meeting
return calculate_current_meetings(found_events)
File "lametro/utils.py", line 77, in calculate_current_meetings
if legistar_meeting_progress(previous_meeting):
File "lametro/utils.py", line 109, in legistar_meeting_progress
organization_name = EventParticipant.objects.get(event_id=event.ocd_id).entity_name.strip()
File "django/db/models/manager.py", line 122, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "django/db/models/query.py", line 391, in get
(self.model._meta.object_name, num)
I've just run import_data locally and then queried for event_ids with more than one EventParticipant (select event_id from councilmatic_core_eventparticipant group by event_id having count(*) > 1), but found none. I suspect something was deleted and recreated (hence, import_data on a fresh system would not contain the duplicate). If that is the case, this is related to opencivicdata/pupa#295 err, no, that doesn't make sense.
The text was updated successfully, but these errors were encountered:
Sentry link: https://sentry.io/datamade/lametro-councilmatic/issues/558790581/
I've just run import_data locally and then queried for event_ids with more than one EventParticipant (
select event_id from councilmatic_core_eventparticipant group by event_id having count(*) > 1
), but found none. I suspect something was deleted and recreated (hence, import_data on a fresh system would not contain the duplicate).If that is the case, this is related to opencivicdata/pupa#295err, no, that doesn't make sense.The text was updated successfully, but these errors were encountered: