Skip to content

Commit

Permalink
bug fixing the delete club events func
Browse files Browse the repository at this point in the history
  • Loading branch information
pevans927 committed May 20, 2023
1 parent 19820f6 commit 883ad44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def delete_all_club_events(request: DeleteAllClubEventsRequest):

for event in club_dict['club_events']:
end = event['end'].replace(tzinfo=None)
if end < today:
if end > today:
club_dict['club_events'].remove(event)

db.collection(u'clubs').document(f'{club_dict["id"]}').update(club_dict)
Expand Down

0 comments on commit 883ad44

Please sign in to comment.