diff --git a/src/utils/management/commands/convert_eventinstances.py b/src/utils/management/commands/convert_eventinstances.py index 5c59a245..3e376449 100644 --- a/src/utils/management/commands/convert_eventinstances.py +++ b/src/utils/management/commands/convert_eventinstances.py @@ -41,7 +41,7 @@ class Command(BaseCommand): when__adjacent_to=instance.when, available=True, ) - if sa.when.lower == instance.upper: + if sa.when.lower == instance.when.upper: # this availability begins when the instance ends sa.when = (instance.when.lower, sa.when.upper) else: