mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 09:33:44 +01: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)
|
donate_url = db.Column(db.String(255), nullable=True, default=None)
|
||||||
|
|
||||||
# Content
|
# 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")
|
packages = db.relationship("Package", backref=db.backref("author", lazy="joined"), lazy="dynamic")
|
||||||
requests = db.relationship("EditRequest", backref="author", lazy="dynamic")
|
requests = db.relationship("EditRequest", backref="author", lazy="dynamic")
|
||||||
|
Loading…
Reference in New Issue
Block a user