mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Merge pull request #162 from zorun/order_bills
Sort bills by (date.desc, ID.desc) instead of just date.desc
This commit is contained in:
commit
d33f4a92a6
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ class Project(db.Model):
|
|||
.filter(Bill.payer_id == Person.id)\
|
||||
.filter(Person.project_id == Project.id)\
|
||||
.filter(Project.id == self.id)\
|
||||
.order_by(Bill.date.desc())
|
||||
.order_by(Bill.date.desc())\
|
||||
.order_by(Bill.id.desc())
|
||||
|
||||
def remove_member(self, member_id):
|
||||
"""Remove a member from the project.
|
||||
|
|
Loading…
Reference in a new issue