Aug 27 - Add MySQL optimize and security check

This commit is contained in:
2026-08-27 17:36:28 -04:00
parent ba10ec42e0
commit b7bc0f0335
16 changed files with 1524 additions and 58 deletions
+2 -2
View File
@@ -103,8 +103,8 @@ def list_scheduled():
if user.role not in _ALLOWED_ROLES:
return api_error('Access denied', 403)
limit = min(int(request.args.get('limit', 100)), 200)
offset = max(int(request.args.get('offset', 0)), 0)
limit = min(request.args.get('limit', 100, type=int) or 100, 200)
offset = max(request.args.get('offset', 0, type=int) or 0, 0)
query = ScheduledInspection.query.filter(ScheduledInspection.active.is_(True))