From b590e889a7f025a6d6aa72013f3e92b935bf30cc Mon Sep 17 00:00:00 2001 From: zhayujie Date: Sat, 25 Mar 2023 01:11:39 +0800 Subject: [PATCH] fix: datetime is not defined --- common/expired_dict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/expired_dict.py b/common/expired_dict.py index bd70e99..15cdd75 100644 --- a/common/expired_dict.py +++ b/common/expired_dict.py @@ -1,5 +1,5 @@ import time - +from datetime import datetime, timedelta class ExpiredDict(dict): def __init__(self, expires_in_seconds):