Skip to content

Commit

Permalink
Removed unneeded data from JSON data (#89)
Browse files Browse the repository at this point in the history
* Removed unneeded data from JSON data

* Removed state

* Removed path as well
  • Loading branch information
ramonski authored and xispa committed Nov 9, 2018
1 parent daf0e43 commit e92caaf
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/senaite/lims/browser/spotlight/jsonapi.py
Expand Up @@ -48,27 +48,21 @@ def get_brain_info(brain):
icon = ""

id = api.get_id(brain)
uid = api.get_uid(brain)
url = api.get_url(brain)
path = api.get_path(brain)
title = api.get_title(brain)
description = api.get_description(brain)
parent = api.get_parent(brain)
parent_title = api.get_title(parent)
parent_url = api.get_url(parent)
state = api.get_review_status(brain)

return {
"id": id,
"title": title,
"title_or_id": title or id,
"description": description,
"uid": uid,
"path": path,
"url": url,
"parent_title": parent_title,
"parent_url": parent_url,
"state": state,
"icon": icon,
}

Expand Down
Expand Up @@ -76,7 +76,6 @@ $(document).ready ->
title: ""
url: ""
icon: ""
state: ""
title_or_id: ""
parent_title: ""
parent_url: ""
Expand Down
1 change: 0 additions & 1 deletion src/senaite/lims/browser/spotlight/static/js/spotlight.js
Expand Up @@ -106,7 +106,6 @@
title: "",
url: "",
icon: "",
state: "",
title_or_id: "",
parent_title: "",
parent_url: ""
Expand Down

0 comments on commit e92caaf

Please sign in to comment.