forked from username/flaskpaste
refactor: code consistency and best practices
- add type hints to error handlers in app/__init__.py - add docstrings to nested callback functions - remove deprecated X-XSS-Protection header (superseded by CSP) - fix typo in cleanup log message (entr(ies) -> entries) - standardize loop variable naming in fpaste CLI - update test for intentional header removal
This commit is contained in:
@@ -59,7 +59,7 @@ def run_scheduled_cleanup():
|
||||
|
||||
count = cleanup_rate_limits()
|
||||
if count > 0:
|
||||
current_app.logger.info(f"Cleaned up {count} rate limit entr(ies)")
|
||||
current_app.logger.info(f"Cleaned up {count} rate limit entries")
|
||||
|
||||
|
||||
from app.api import routes # noqa: E402, F401
|
||||
|
||||
Reference in New Issue
Block a user