From 36fef3b4eac3588fbde4c81f8ea66910cd32d476 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 22 Jun 2020 00:52:27 +0200 Subject: [PATCH] forgot .when. --- src/utils/management/commands/convert_eventinstances.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: