mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
Fixed tab indentation
This commit is contained in:
parent
4d5c8a507b
commit
26e909f63b
1 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue