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

This commit is contained in:
Piero Toffanin 2025-04-18 15:52:27 -04:00
parent fd0119bf70
commit 411b50178e
5 changed files with 30 additions and 11 deletions

View file

@ -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):