def update_status(self, update_count, status, count):
        """Update the statuses on the update_count with the given status."""
        # Only update if the given status is valid.
        if status in VALID_STATUSES:
            update_count.statuses = update_inc(update_count.statuses, status,
                                               count)
dataset/ETHPy150Open mozilla/addons-server/src/olympia/stats/management/commands/update_counts_from_file.py/Command.update_status/original