mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 09:33:44 +01:00
Sort provides relationship
This commit is contained in:
parent
f24148d431
commit
5fa0a7866a
@ -418,7 +418,8 @@ class Package(db.Model):
|
||||
issueTracker = db.Column(db.String(200), nullable=True)
|
||||
forums = db.Column(db.Integer, nullable=True)
|
||||
|
||||
provides = db.relationship("MetaPackage", secondary=provides, lazy="subquery",
|
||||
provides = db.relationship("MetaPackage", \
|
||||
secondary=provides, lazy="subquery", order_by=db.asc("name"), \
|
||||
backref=db.backref("packages", lazy="dynamic", order_by=db.desc("score")))
|
||||
|
||||
dependencies = db.relationship("Dependency", backref="depender", lazy="dynamic", foreign_keys=[Dependency.depender_id])
|
||||
|
Loading…
Reference in New Issue
Block a user