Browse Source

fix: datetime is not defined

zhayujie 3 năm trước cách đây
mục cha
commit
b590e889a7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/expired_dict.py

+ 1 - 1
common/expired_dict.py

@@ -1,5 +1,5 @@
 import time
-
+from datetime import datetime, timedelta
 
 class ExpiredDict(dict):
     def __init__(self, expires_in_seconds):