fix(web): fix UP card layout and fan delta semantics
This commit is contained in:
1 parent
7fcd1db987
commit
f9a5478800
7 files changed
+51
-16
No files matched your search
@@ -314,7 +314,7 @@ border-color:#333a42;color:#f3f4f6}}
|
||||
scope = _param(query, "scope", "video")
|
||||
if scope == "up":
|
||||
self._send_json(HTTPStatus.OK, queries.list_ups(
|
||||
sort=_param(query, "sort", "views"),
|
||||
sort=_param(query, "sort", "avg_views"),
|
||||
within_days=_optional_int(query, "within_days"),
|
||||
q=_optional_str(query, "q"),
|
||||
min_videos=_int_param(query, "min_videos", 1, 1, 10000),
|
||||
@@ -344,7 +344,7 @@ border-color:#333a42;color:#f3f4f6}}
|
||||
return
|
||||
if path == "/api/ups":
|
||||
self._send_json(HTTPStatus.OK, queries.list_ups(
|
||||
sort=_param(query, "sort", "views"),
|
||||
sort=_param(query, "sort", "avg_views"),
|
||||
within_days=_optional_int(query, "within_days"),
|
||||
q=_optional_str(query, "q"),
|
||||
min_videos=_int_param(query, "min_videos", 1, 1, 10000),
|
||||
|
||||
Reference in new issue
Block a user