Refactor rate limiter and datetime formatting

This commit is contained in:
2026-01-22 02:24:03 +01:00
parent f297a8d740
commit 04114ab659
8 changed files with 133 additions and 135 deletions

View File

@@ -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")