Refactor rate limiter and datetime formatting
This commit is contained in:
@@ -13,6 +13,7 @@ __all__ = [
|
||||
"cleanup",
|
||||
"cli",
|
||||
"config",
|
||||
"datetime_str",
|
||||
"dns",
|
||||
"email",
|
||||
"logging",
|
||||
@@ -20,5 +21,8 @@ __all__ = [
|
||||
"models",
|
||||
"ratelimit",
|
||||
"server",
|
||||
"validation"
|
||||
]
|
||||
|
||||
|
||||
def datetime_str(datetime):
|
||||
return datetime.strftime("%Y-%m-%d %H:%M:%S")
|
||||
|
||||
Reference in New Issue
Block a user