mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-09-12 07:30:16 +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:
|
if api_key:
|
||||||
db_req_limit = api_keys_db.lookup(api_key)
|
db_req_limit = api_keys_db.lookup(api_key)
|
||||||
if db_req_limit is not None:
|
if db_req_limit is not None:
|
||||||
req_limit = db_req_limit
|
req_limit = db_req_limit * multiplier
|
||||||
|
|
||||||
return req_limit
|
return req_limit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user