1
0
Fork 0
mirror of https://github.com/Findus23/acronomy.git synced 2024-09-19 15:33:45 +02:00
acronomy/acros/management/commands/datacheck.py

12 lines
293 B
Python

from django.core.management.base import BaseCommand
from acros.utils.checks import registry
class Command(BaseCommand):
help = 'check integrity of data'
def handle(self, *args, **kwargs):
errors = registry.run_checks()
for error in errors:
print(error)