akvo.rsr.management.commands.remove_period_dupes module

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

Bases: BaseCommand

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

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

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

help = 'Script that lists indicator periods that share the same indicator, have the same period_start and period_end and has no other data. When deleting, there will always be one period left with a particular set of dates.\n\nThe script will also list periods that are duplicates as per above, but have data added to them. They will never be deleted.\n\nUse the --delete option to actually delete the duplicates listed'