address Bohan's comment

This commit is contained in:
yangdsh
2020-05-25 16:02:43 +00:00
committed by Dana Van Aken
parent a0089cccdf
commit c9d3642e6a
2 changed files with 7 additions and 2 deletions

View File

@@ -1784,7 +1784,7 @@ def alt_create_or_edit_session(request):
@csrf_exempt
def pipeline_data_ready(request): # pylint: disable=unused-argument
LOG.debug("Latest pipeline run: %s", PipelineRun.objects.get_latest())
newest_result = Result.objects.filter().order_by('-pk')[0]
newest_result = Result.objects.order_by('-pk')[0]
pipeline_data = PipelineData.objects.filter(workload=newest_result.workload).order_by('-pk')
if pipeline_data.exists() and pipeline_data[0].pipeline_run.end_time is not None:
response = "Pipeline data ready: True"