Skip to content
Snippets Groups Projects
Commit 2baf928c authored by Branson Craig Stephens's avatar Branson Craig Stephens
Browse files

Fixed bug with cli search returning 500 if an event in the queryset doesn't have a Search defined.

parent a8d5d4a4
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,8 @@ def cli_search(request):
"labels" : lambda e: \
",".join([labelling.label.name for labelling in e.labelling_set.all()]),
"pipeline" : lambda e: e.pipeline.name,
"search" : lambda e: e.search.name or "",
#"search" : lambda e: e.search.name or "",
"search" : lambda e: e.search.name if e.search else "",
"gpstime" : lambda e: str(e.gpstime) or "",
"created" : lambda e: e.created.isoformat(),
"dataurl" : lambda e: e.weburl(),
......
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