diff --git a/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py b/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py index f125a33e..21acfc3a 100644 --- a/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py +++ b/tabcmd/commands/datasources_and_workbooks/datasources_and_workbooks_command.py @@ -163,4 +163,4 @@ def get_custom_view_by_id(logger, server, custom_view_id) -> TSC.CustomViewItem: Errors.exit_with_error(logger, exception=e) if matching_custom_view is None: Errors.exit_with_error(logger, message=_("errors.xmlapi.not_found")) - return matching_custom_view \ No newline at end of file + return matching_custom_view diff --git a/tabcmd/commands/datasources_and_workbooks/export_command.py b/tabcmd/commands/datasources_and_workbooks/export_command.py index f4c251be..787a16a8 100644 --- a/tabcmd/commands/datasources_and_workbooks/export_command.py +++ b/tabcmd/commands/datasources_and_workbooks/export_command.py @@ -78,8 +78,12 @@ def run_command(args): logger.debug(_("tabcmd.launching")) session = Session() server = session.create_session(args, logger) - view_content_url, wb_content_url, custom_view_id, custom_view_name = ( - ExportCommand.parse_export_url_to_workbook_view_and_custom_view(logger, args.url)) + ( + view_content_url, + wb_content_url, + custom_view_id, + custom_view_name, + ) = ExportCommand.parse_export_url_to_workbook_view_and_custom_view(logger, args.url) logger.debug(["view_url:", view_content_url, "workbook:", wb_content_url]) if not view_content_url and not wb_content_url: view_example = "/workbook_name/view_name" @@ -97,7 +101,8 @@ def run_command(args): elif args.pdf or args.png or args.csv: # it's a view or custom_view export_item, server_content_type = ExportCommand.get_export_item_and_server_content_type( - view_content_url, logger, server, custom_view_id) + view_content_url, logger, server, custom_view_id + ) if args.pdf: output = ExportCommand.download_view_pdf(server_content_type, export_item, args, logger) @@ -222,4 +227,4 @@ def verify_valid_custom_view_id(logger, custom_view_id): try: UUID(custom_view_id) except ValueError: - Errors.exit_with_error(logger, _("export.errors.requires_valid_custom_view_uuid")) \ No newline at end of file + Errors.exit_with_error(logger, _("export.errors.requires_valid_custom_view_uuid")) diff --git a/tabcmd/commands/datasources_and_workbooks/get_url_command.py b/tabcmd/commands/datasources_and_workbooks/get_url_command.py index a2ce817b..2ba88ba9 100644 --- a/tabcmd/commands/datasources_and_workbooks/get_url_command.py +++ b/tabcmd/commands/datasources_and_workbooks/get_url_command.py @@ -73,8 +73,9 @@ def explain_expected_url(logger, url: str, command: str): ds_example = "/datasources/