Skip to content

Commit 0fbe365

Browse files
committed
Add the Wilson score and width sort methods
1 parent 75aec19 commit 0fbe365

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

derpibooru/sort.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ def methods(self):
3838
sorting_methods = {
3939
"created_at",
4040
"score",
41+
"wilson",
4142
"relevance",
4243
"height",
44+
"width",
4345
"comments",
4446
"random"
4547
}

tests/test_random_parameters.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ def test_sorting_methods():
44
sorting_methods = {
55
"created_at",
66
"score",
7+
"wilson",
78
"relevance",
89
"height",
10+
"width",
911
"comments",
1012
"random"
1113
}

0 commit comments

Comments
 (0)