feat(web): default video sort to published and UP sort to avg_views

This commit is contained in:
kairee committed 2026-11-03 03:09:53 +08:00
1 parent 764bde65d9
commit 11930db2bf
8 files changed
+31 -20

No files matched your search

+3
View File
@@ -63,6 +63,9 @@ def test_video_listing_filters_and_sorting():
with tempfile.TemporaryDirectory() as tmp:
db, q = setup(tmp)
try:
default = q.list_videos()
assert default["sort"] == "published"
heat = q.list_videos(sort="heat")
aids = [item["aid"] for item in heat["items"]]
assert 104 not in aids, "removed 视频不应进入榜单"