yym68686 commited on
Commit
cb8aca6
·
1 Parent(s): 466f9a4

🐛 Bug: Fix the bug where the return data type of frequency limit is incorrect.

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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