1
0
Fork 0
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:
Alexis Metaireau 2017-01-16 21:13:10 +01:00 committed by GitHub
commit d33f4a92a6

View file

@ -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.