feat(web): show cumulative fan range and limit recent records
This commit is contained in:
1 parent
b6a9f598b5
commit
d8e9a7b0f0
5 files changed
+48
-9
No files matched your search
@@ -102,6 +102,15 @@ def test_readonly_routes_and_static():
|
||||
assert status == 200
|
||||
assert json.loads(payload)["data"]["sort"] == "avg_views"
|
||||
|
||||
status, _, payload = running.request("/api/fans?days=7&recent_days=14")
|
||||
assert status == 200
|
||||
fans = json.loads(payload)["data"]
|
||||
assert fans["recent_days"] == 14
|
||||
assert all(
|
||||
point["stat_date"] >= "2026-10-18"
|
||||
for point in fans["recent_points"]
|
||||
)
|
||||
|
||||
status, headers, payload = running.request("/api/videos", method="HEAD")
|
||||
assert status == 200 and payload == b""
|
||||
assert "Content-Length" in headers
|
||||
|
||||
Reference in new issue
Block a user