mirror of
https://github.com/Findus23/acronomy.git
synced 2024-09-20 16:43:44 +02:00
13 lines
293 B
Python
13 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)
|