From b62922129693de2fee2c4595470ab27331db7618 Mon Sep 17 00:00:00 2001 From: misraX Date: Tue, 17 Mar 2020 01:05:18 +0200 Subject: [PATCH] Remove unused variable Variable is not used by any scope. --- happenings/models.py | 1 - 1 file changed, 1 deletion(-) diff --git a/happenings/models.py b/happenings/models.py index 30b3cc9..86524f3 100644 --- a/happenings/models.py +++ b/happenings/models.py @@ -219,7 +219,6 @@ def check_if_cancelled(self, date): ((cancellation.date == date) for cancellation in self.cancellations.all()) ) except (AttributeError, KeyError): - result = False result = self.cancellations.filter(date=date).exists() self._check_if_cancelled_cache[date] = result