Sfoglia il codice sorgente

fix: datetime is not defined

zhayujie 3 anni fa
parent
commit
b590e889a7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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):