mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-20 16:10:58 +00:00
Fix Limiter: #49
This commit is contained in:
parent
90de8e22a0
commit
3e952fbdb4
3 changed files with 12 additions and 1 deletions
8
app/no_limiter.py
Normal file
8
app/no_limiter.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from functools import wraps
|
||||
|
||||
class Limiter:
|
||||
def exempt(self, f):
|
||||
@wraps(f)
|
||||
def wrapper(*args, **kwargs):
|
||||
return f(*args, **kwargs)
|
||||
return wrapper
|
Loading…
Add table
Add a link
Reference in a new issue