[Bugfix] Remove svg export (#6476)

* lint

* fix version

* add url functionality to the charting extension

* small adjustments and removing unused function

* remove svg

* remove unused function

* better messages

* version can't be asserted bc will change
This commit is contained in:
Henrique Joaquim
2024-06-03 14:28:57 +01:00
committed by GitHub
parent 0b3e286035
commit 8a63c2df3e
11 changed files with 39 additions and 113 deletions

View File

@@ -743,13 +743,15 @@ class BaseController(metaclass=ABCMeta):
if export_allowed == "raw_data_only":
choices_export = ["csv", "json", "xlsx"]
help_export = "Export raw data into csv, json, xlsx"
help_export = "Export raw data into csv, json or xlsx."
elif export_allowed == "figures_only":
choices_export = ["png", "jpg", "svg"]
help_export = "Export figure into png, jpg, svg "
choices_export = ["png", "jpg"]
help_export = "Export figure into png or jpg."
else:
choices_export = ["csv", "json", "xlsx", "png", "jpg", "svg"]
help_export = "Export raw data into csv, json, xlsx and figure into png, jpg, svg "
choices_export = ["csv", "json", "xlsx", "png", "jpg"]
help_export = (
"Export raw data into csv, json, xlsx and figure into png or jpg."
)
parser.add_argument(
"--export",
@@ -823,7 +825,7 @@ class BaseController(metaclass=ABCMeta):
"raw_data_and_figures",
]:
ns_parser.is_image = any(
ext in ns_parser.export for ext in ["png", "svg", "jpg"]
ext in ns_parser.export for ext in ["png", "jpg"]
)
except SystemExit: