mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-08-20 13:21:25 +02:00
Fix limits
This commit is contained in:
parent
b05c04346e
commit
cdff45efe6
@ -40,7 +40,7 @@ def get_req_limits(default_limit, api_keys_db, multiplier = 1):
|
||||
if api_key:
|
||||
db_req_limit = api_keys_db.lookup(api_key)
|
||||
if db_req_limit is not None:
|
||||
req_limit = db_req_limit
|
||||
req_limit = db_req_limit * multiplier
|
||||
|
||||
return req_limit
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user