syntax change

This commit is contained in:
Natan Keddem
2024-09-27 21:20:30 -04:00
parent 074975650f
commit f8e93cedf2

View File

@ -84,7 +84,7 @@ class Drawer(object):
self._table.add_rows({"name": name})
self._table.visible = True
async def _display_answer_dialog(self, name="", copy_answer=False):
async def _display_answer_dialog(self, name="", copy=False):
save = None
with ui.dialog() as answer_dialog, el.Card():
@ -162,7 +162,7 @@ class Drawer(object):
await self._display_answer_dialog(name=e.selection[0]["name"])
if self._selection_mode == "content_copy":
if len(e.selection) > 0:
await self._display_answer_dialog(name=e.selection[0]["name"], copy_answer=True)
await self._display_answer_dialog(name=e.selection[0]["name"], copy=True)
if self._selection_mode == "remove":
if len(e.selection) > 0:
for row in e.selection: