def activate_compare_version(self): """Set the compare version to Active. Should only be done after results are finished uploading""" cv = CompareVersion(self.compare_version_id, env=self.upload_env) cv._update_status(gbd_process_version_status['ACTIVE'])
def deactivate_compare_version(self): """Set the compare version to Delete. Should only be done after run has failed""" cv = CompareVersion(self.compare_version_id, env=self.upload_env) cv._update_status(gbd_process_version_status['DELETED'])