mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-15 06:22:52 +00:00
Improvement to under attack mode
Some checks are pending
Build and Publish Docker Image / main (push) Waiting to run
Run tests / tests_python (3.9) (push) Waiting to run
Run tests / test_docker_build (push) Waiting to run
Run tests / tests_python (3.10) (push) Waiting to run
Run tests / tests_python (3.8) (push) Waiting to run
Some checks are pending
Build and Publish Docker Image / main (push) Waiting to run
Run tests / tests_python (3.9) (push) Waiting to run
Run tests / test_docker_build (push) Waiting to run
Run tests / tests_python (3.10) (push) Waiting to run
Run tests / tests_python (3.8) (push) Waiting to run
This commit is contained in:
parent
fd0119bf70
commit
411b50178e
5 changed files with 30 additions and 11 deletions
|
@ -60,7 +60,7 @@ class MemoryStorage(Storage):
|
|||
def set_str(self, key, value, ex=None):
|
||||
self.store[key] = {
|
||||
'value': value,
|
||||
'ex': time.time() + ex
|
||||
'ex': None if ex is None else time.time() + ex
|
||||
}
|
||||
|
||||
def get_str(self, key):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue