Fixed tab indentation

This commit is contained in:
Fabrice Salvaire 2016-10-19 21:13:31 +02:00
parent 4d5c8a507b
commit 26e909f63b

View file

@ -224,11 +224,11 @@ class Bill(db.Model):
def pay_each(self):
"""Compute what each share has to pay"""
if self.owers:
if self.owers:
# FIXME: SQL might dot that more efficiently
return self.amount / sum(i.weight for i in self.owers)
else:
return 0
return self.amount / sum(i.weight for i in self.owers)
else:
return 0
def __repr__(self):
return "<Bill of %s from %s for %s>" % (self.amount,