Skip to content

Commit

Permalink
Merge pull request #1359 from BCStudentSoftwareDevTeam/1350_recurring…
Browse files Browse the repository at this point in the history
…_events_bug

Fixed bug with deleting recurring events
  • Loading branch information
bledsoef authored Nov 22, 2024
2 parents af0501a + c357886 commit eaae371
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/logic/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ def deleteEvent(eventId):
if event:
if event.recurringId:
recurringId = event.recurringId
recurringEvents = list(Event.select().where(Event.recurringId==recurringId).order_by(Event.id)) # orders for tests
recurringEvents = list(Event.select().where(Event.recurringId==recurringId, Event.deletionDate.is_null(True)).order_by(Event.id)) # orders for tests
eventDeleted = False

# once the deleted event is detected, change all other names to the previous event's name
for recurringEvent in recurringEvents:
if eventDeleted:
Expand Down

0 comments on commit eaae371

Please sign in to comment.