akvo.rsr.management.commands.add_periods module

class akvo.rsr.management.commands.add_periods.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: BaseCommand

handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = '\n    Script that adds indicator periods for a project to indicators of output results.\n    The new periods have the following start and end dates:\n        2018-01-01", "2018-06-30"\n        2018-07-01", "2018-12-31"\n        2019-01-01", "2019-06-30"\n        2019-07-01", "2019-12-31"\n        2020-01-01", "2020-06-30"\n        2020-07-01", "2020-12-31"\n        2021-01-01", "2021-06-30"\n        2021-07-01", "2021-12-31"\n\n    NOTE: this is a custom command for OneDrop.\n    '