Skip to content

Commit 85cf70f

Browse files
authored
fix: fix the length limit of tags (#105)
fix #104
1 parent 0595a95 commit 85cf70f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/upload/query_search_suggestion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def get_bilibili_suggestions(term):
1919
response = requests.get(url, params=params)
2020
if response.status_code == 200:
2121
suggestions = response.json()
22-
values_list = [item['value'] for item in suggestions['result']['tag']]
22+
values_list = [item['value'][:20] for item in suggestions['result']['tag']]
2323
result = ",".join(values_list)
2424
return result
2525
print(f"Request failed with status code: {response.status_code}")

0 commit comments

Comments
 (0)