Skip to content
Snippets Groups Projects
Commit 2f3baed0 authored by Brian Moe's avatar Brian Moe
Browse files

Added FAR to cli search results

parent 0f0eb3e3
No related branches found
Tags gracedb-2.0.0
No related merge requests found
...@@ -505,15 +505,16 @@ def cli_search(request): ...@@ -505,15 +505,16 @@ def cli_search(request):
query = form.cleaned_data['query'] query = form.cleaned_data['query']
objects = Event.objects.filter(query).distinct() objects = Event.objects.filter(query).distinct()
# Assemble the output... should be able to choose format. # Assemble the output... should be able to choose format.
outTable = ["#graceid\tlabels\tgroup\ttype\tgpstime\tcreatetime\turl"] outTable = ["#graceid\tlabels\tgroup\ttype\tfar\tgpstime\tcreatetime\turl"]
outTable += [ outTable += [
"%s\t%s\t%s\t%s\t%s\t%s\t%s" % ( "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s" % (
e.graceid(), e.graceid(),
",".join([labelling.label.name for labelling in e.labelling_set.all()]), ",".join([labelling.label.name for labelling in e.labelling_set.all()]),
e.group, e.group,
e.get_analysisType_display(), e.get_analysisType_display(),
e.far or "",
e.gpstime or "", e.gpstime or "",
e.created, e.created.isoformat(),
e.weburl(), e.weburl(),
) )
for e in objects for e in objects
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment