Skip to content

Commit

Permalink
Get value from "parsed_value" avoiding call to from_database()
Browse files Browse the repository at this point in the history
  • Loading branch information
soininen committed Jan 30, 2025
1 parent 1925038 commit ed1d75d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spinetoolbox/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def plot_db_mngr_items(items, db_maps, db_name_registry, plot_widget=None):
raise PlottingError("Database maps don't match parameter values.")
root_node = TreeNode("database")
for item, db_map in zip(items, db_maps):
value = from_database(item["value"], item["type"])
value = item["parsed_value"]
db_name = db_name_registry.display_name(db_map.sa_url)
if value is None:
continue
Expand Down
2 changes: 1 addition & 1 deletion spinetoolbox/spine_db_editor/widgets/graph_view_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def _get_pv(self, db_map, entity_id, pname):
)
if not pv:
return None
return from_database(pv["value"], pv["type"])
return pv["parsed_value"]

def get_item_name(self, db_map, entity_id):
if not self.ui.graphicsView.name_parameter:
Expand Down

0 comments on commit ed1d75d

Please sign in to comment.