Skip to content

Commit

Permalink
Update ephios/core/services/notifications/types.py
Browse files Browse the repository at this point in the history
Co-authored-by: Felix Rindt <felix@ephios.de>
  • Loading branch information
jeriox and felixrindt committed Mar 16, 2024
1 parent 8501f3b commit e8d0d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ephios/core/services/notifications/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ def send(cls, event: Event, content: str):
for participation in shift.participations.filter(
state__in={AbstractParticipation.States.CONFIRMED}
):
if participation.participant not in participants:
participant = participation.participant
participant = participation.participant
if participant not in participants:
participants.add(participant)
user = (
participant.user if isinstance(participant, LocalUserParticipant) else None
Expand Down

0 comments on commit e8d0d95

Please sign in to comment.