Интегрирован wesp в сайт
CI / quality (push) Canceled after 0s

This commit is contained in:
влад
2026-07-17 12:57:18 +03:00
parent 5dfa06ddbe
commit 355c0ef9f1
883 changed files with 194576 additions and 177 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env python3
"""Аудит данных lab-модуля (профили, нормы, рационы)."""
from __future__ import annotations
import sys
from pathlib import Path
_ROOT = Path(__file__).resolve().parents[1]
if str(_ROOT) not in sys.path:
sys.path.insert(0, str(_ROOT))
from app import create_app, db
from app.lab.commands.audit_lab_data import audit_lab_data, format_audit_report
from config import Config
def main() -> int:
include_components = "--components" in sys.argv
app = create_app(Config)
with app.app_context():
report = audit_lab_data(include_components=include_components)
print(format_audit_report(report))
db.session.remove()
return 0 if report.ok() else 1
if __name__ == "__main__":
raise SystemExit(main())