🐛 Bug: Fix the bug where the return data type of frequency limit is incorrect.
Browse files
utils.py
CHANGED
@@ -72,7 +72,7 @@ async def get_user_rate_limit(app, api_index: str = None):
|
|
72 |
# print("not api_index or not raw_rate_limit", api_index == None, not raw_rate_limit, api_index == None or not raw_rate_limit, api_index, raw_rate_limit)
|
73 |
|
74 |
if api_index == None or not raw_rate_limit:
|
75 |
-
return (30, 60)
|
76 |
|
77 |
rate_limit = parse_rate_limit(raw_rate_limit)
|
78 |
return rate_limit
|
|
|
72 |
# print("not api_index or not raw_rate_limit", api_index == None, not raw_rate_limit, api_index == None or not raw_rate_limit, api_index, raw_rate_limit)
|
73 |
|
74 |
if api_index == None or not raw_rate_limit:
|
75 |
+
return [(30, 60)]
|
76 |
|
77 |
rate_limit = parse_rate_limit(raw_rate_limit)
|
78 |
return rate_limit
|