mirror of
https://github.com/minetest/contentdb.git
synced 2024-09-20 21:08:29 +02:00
Sort notifications by date
This commit is contained in:
parent
258a23cd9a
commit
dd1288dc3c
@ -163,7 +163,8 @@ class User(db.Model, UserMixin):
|
||||
donate_url = db.Column(db.String(255), nullable=True, default=None)
|
||||
|
||||
# Content
|
||||
notifications = db.relationship("Notification", primaryjoin="User.id==Notification.user_id")
|
||||
notifications = db.relationship("Notification", primaryjoin="User.id==Notification.user_id", \
|
||||
order_by="Notification.created_at")
|
||||
|
||||
packages = db.relationship("Package", backref=db.backref("author", lazy="joined"), lazy="dynamic")
|
||||
requests = db.relationship("EditRequest", backref="author", lazy="dynamic")
|
||||
|
Loading…
Reference in New Issue
Block a user