From 384d9b74c4a08334f9c41a74a9fca5189bd7c56e Mon Sep 17 00:00:00 2001 From: Bishoy-at-pieces Date: Wed, 18 Sep 2024 20:47:06 +0300 Subject: [PATCH] fix description command can't be edited --- assets/export_command.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/export_command.py b/assets/export_command.py index ab842bc..6775e05 100644 --- a/assets/export_command.py +++ b/assets/export_command.py @@ -35,7 +35,7 @@ - Tab Trigger: {trigger} -- Description: {description} +- Description: {description} - Scope: {scope} @@ -116,7 +116,7 @@ def run(self,sheet_id): kwargs={ "asset_id":instance.asset_id, "content":instance.content, - "description":instance.asset_description, + "asset_description":instance.asset_description, "scope":instance.scope, "trigger":instance.trigger } @@ -138,10 +138,11 @@ def run(self,field:str,sheet_id): field (str): - trigger - scope - - description + - asset_description - content - asset_id """ + print(field) self.field = field self.instance = PiecesExportAssetToSublimeCommand.get_instance(sheet_id) self.window.show_input_panel(f"{field.title()}:", getattr(self.instance,field), self.on_done, None, None)