diff options
| author | 2022-07-23 22:55:42 +0100 | |
|---|---|---|
| committer | 2022-08-14 19:43:52 +0100 | |
| commit | 9c5d2e67e3ab76eeffeaa46682325bb3a81bf545 (patch) | |
| tree | 5e470a42b133d25a2aa946545eefe3d82a3760d3 | |
| parent | Remove usages of the removed namespace_lock decorator (diff) | |
Convert key expiries to integers before passing to Redis
If a float is given, Redis will assume the expiry is in milliseconds and must be multiplied by 1000. This is undesirable, as we are already passing the expiry in seconds.
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/info/doc/_redis_cache.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/bot/exts/info/doc/_redis_cache.py b/bot/exts/info/doc/_redis_cache.py index 9ac8492e9..eb06e9aef 100644 --- a/bot/exts/info/doc/_redis_cache.py +++ b/bot/exts/info/doc/_redis_cache.py @@ -12,7 +12,7 @@ from bot.log import get_logger  if TYPE_CHECKING:      from ._cog import DocItem -WEEK_SECONDS = datetime.timedelta(weeks=1).total_seconds() +WEEK_SECONDS = int(datetime.timedelta(weeks=1).total_seconds())  log = get_logger(__name__) | 
