779ccdf5d3
Signed-off-by: volpino <fox91@anche.no>
17 lines
438 B
Python
17 lines
438 B
Python
import logging
|
|
from django.core.management.base import BaseCommand
|
|
|
|
from djeuscan.processing import set_verbosity_level
|
|
from djeuscan.processing.regen_rrds import regen_rrds
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
class Command(BaseCommand):
|
|
_overlays = {}
|
|
help = 'Regenerate rrd database'
|
|
|
|
def handle(self, *args, **options):
|
|
set_verbosity_level(logger, options.get("verbosity", 1))
|
|
regen_rrds(logger=logger)
|