mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-02 15:09:33 -05:00
refactor
This commit is contained in:
parent
4e89634bd8
commit
7b4563c88b
@ -74,7 +74,7 @@ func applySorts(sess *xorm.Session, sortType string, priorityRepoID int64) {
|
|||||||
if strings.HasPrefix(sortType, "scope-") {
|
if strings.HasPrefix(sortType, "scope-") {
|
||||||
scope := strings.TrimPrefix(sortType, "scope-")
|
scope := strings.TrimPrefix(sortType, "scope-")
|
||||||
sess.Join("LEFT", "issue_label", "issue.id = issue_label.issue_id")
|
sess.Join("LEFT", "issue_label", "issue.id = issue_label.issue_id")
|
||||||
sess.Join("LEFT", "label", "label.id = issue_label.label_id and label.name LIKE ?", fmt.Sprintf("%s/%%", scope))
|
sess.Join("LEFT", "label", "label.id = issue_label.label_id and label.name LIKE ?", scope+"/%")
|
||||||
sess.Asc("label.exclusive_order").Desc("issue.id")
|
sess.Asc("label.exclusive_order").Desc("issue.id")
|
||||||
return // EARLY RETURN
|
return // EARLY RETURN
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user