Skip to content

Commit

Permalink
Fix migration checks
Browse files Browse the repository at this point in the history
  • Loading branch information
folix-01 committed Nov 8, 2023
1 parent 4272fb8 commit 3fdfbf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/redturtle/prenotazioni/events/prenotazione.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def reallocate_container(obj):

def notify_on_after_transition_event(context, event):
"""The messages are being send only if the following flags on the PrenotazioniFolder are set"""
if is_migration():
return

booking_folder = context.getPrenotazioniFolder()
flags = {
i: getattr(booking_folder, f"notify_on_{i}", False)
Expand Down Expand Up @@ -119,7 +122,6 @@ def get_mail_from_address():

def send_email_to_managers(booking, event):
# skip email for vacation/out-of-office

if is_migration():
return

Expand Down

0 comments on commit 3fdfbf3

Please sign in to comment.