Skip to content

Commit

Permalink
Fix logic bug (missing parens)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmulley committed Jun 2, 2017
1 parent cc90454 commit 1e5c921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parliament/hansards/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def content_floor(self):
def content_floor_if_necessary(self):
"""Returns text spoken in the original language(s), but only if that would
be different than the content in the default language."""
if not self.content_en and self.content_fr:
if not (self.content_en and self.content_fr):
return ''

lang_matches = re.finditer(r'data-originallang="(\w\w)"',
Expand Down

0 comments on commit 1e5c921

Please sign in to comment.