Commit 3b2bfd2e authored by Michal Čihař's avatar Michal Čihař

Fix syntax error

parent a0285b0b
......@@ -957,7 +957,7 @@ class Unit(models.Model):
Updates flag counting failing checks.
'''
has_failing_check = len(self.active_checks()) > 0
if has_failing_check != self.has_failing_check
if has_failing_check != self.has_failing_check:
self.has_failing_check = has_failing_check
self.save()
......@@ -972,7 +972,7 @@ class Unit(models.Model):
Updates flag counting suggestions.
'''
has_suggestion = len(self.suggestions()) > 0
if has_suggestion != self.has_suggestion
if has_suggestion != self.has_suggestion:
self.has_suggestion = has_suggestion
self.save()
......@@ -984,7 +984,7 @@ class Unit(models.Model):
Updates flag counting comments.
'''
has_comment = len(self.get_comments()) > 0
if has_comment != self.has_comment
if has_comment != self.has_comment:
self.has_comment = has_comment
self.save()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment