mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user