Skip to content

Commit

Permalink
Refactor: Update event retrieval to return distinct events (#1197)
Browse files Browse the repository at this point in the history
- Modified the return statement in the EventStore class to ensure that the events returned are distinct, improving data integrity and reducing duplicates in the event list.
  • Loading branch information
abdullai-t authored Dec 19, 2024
1 parent b64feba commit 28a4c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/store/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ def list_events_for_community_admin(self, context: Context, args) -> Tuple[list,

all_events = events | shared

return all_events, None
return all_events.distinct(), None
except Exception as e:
log.exception(e)
return None, CustomMassenergizeError(e)
Expand Down

0 comments on commit 28a4c51

Please sign in to comment.