def get_step_id(self, databaseregionmigration,):
        id = databaseregionmigration.id
        current_step = databaseregionmigration.current_step
        last_step = 1 - len(databaseregionmigration.get_steps())

        is_migration_finished = current_step == last_step

        waiting_status = DatabaseRegionMigrationDetail.WAITING
        running_status = DatabaseRegionMigrationDetail.RUNNING

        migration_running_or_waiting = DatabaseRegionMigrationDetail.objects.\
            filter(database_region_migration=databaseregionmigration,
                   status__in=[waiting_status, running_status])

        if is_migration_finished or migration_running_or_waiting:
            return ''

        return id
dataset/ETHPy150Open globocom/database-as-a-service/dbaas/region_migration/admin/databaseregionmigration.py/DatabaseRegionMigrationAdmin.get_step_id/swapped operands of `-`