From a827b0b9392f8a4564c3b761be64d3d177021e64 Mon Sep 17 00:00:00 2001
From: Branson Stephens <branson.stephens@ligo.org>
Date: Fri, 26 Sep 2014 15:10:20 -0500
Subject: [PATCH] Fixed cli view to return pipeline,search columns instead of
 analysisType. Nobody should be using this thang though.

---
 gracedb/cli_views.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gracedb/cli_views.py b/gracedb/cli_views.py
index 2bf9e3576..3a697b322 100644
--- a/gracedb/cli_views.py
+++ b/gracedb/cli_views.py
@@ -40,7 +40,8 @@ def cli_search(request):
         accessFun = {
             "labels" : lambda e: \
                 ",".join([labelling.label.name for labelling in e.labelling_set.all()]),
-            "analysisType" : lambda e: e.get_analysisType_display(),
+            "pipeline" : lambda e: e.pipeline.name,
+            "search"  : lambda e: e.search.name or "",
             "gpstime" : lambda e: str(e.gpstime) or "",
             "created" : lambda e: e.created.isoformat(),
             "dataurl" : lambda e: e.weburl(),
@@ -49,7 +50,7 @@ def cli_search(request):
         }
         defaultAccess = lambda e, a: str(getattr(e,a,None) or "")
 
-        defaultColumns = "graceid,labels,group,analysisType,far,gpstime,created,dataurl"
+        defaultColumns = "graceid,labels,group,pipeline,search,far,gpstime,created,dataurl"
         columns = request.POST.get('columns')
         if not columns:
             columns = defaultColumns
-- 
GitLab