Commit 1b74c317 authored by Valentin Valls's avatar Valentin Valls
Browse files

Fix reuse custom plot from an id

parent 89a591d8
...@@ -460,7 +460,10 @@ class FlintClient: ...@@ -460,7 +460,10 @@ class FlintClient:
return plot_class(flint=self, plot_id=unique_name) return plot_class(flint=self, plot_id=unique_name)
if unique_name is not None: if unique_name is not None:
flint_plot_id = self._plot_mapping.get(unique_name, None) if isinstance(unique_name, int):
flint_plot_id = unique_name
else:
flint_plot_id = self._plot_mapping.get(unique_name, None)
if flint_plot_id is not None: if flint_plot_id is not None:
if self.is_plot_exists(flint_plot_id): if self.is_plot_exists(flint_plot_id):
return plot_class(flint=self, plot_id=flint_plot_id) return plot_class(flint=self, plot_id=flint_plot_id)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment