readded rust install on CLI for linux in case cache gets cleared

This commit is contained in:
teh_coderer
2023-03-17 14:36:29 -04:00
parent 11914809a0
commit 404693d046
2 changed files with 9 additions and 10 deletions

View File

@@ -82,6 +82,7 @@ jobs:
- name: Setup sudo apt installs for ubuntu-latest
run: |
curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
sudo apt-get update
sudo apt-get install -y \
build-essential \
@@ -159,6 +160,7 @@ jobs:
- name: Setup sudo apt installs for ubuntu-latest
run: |
curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
sudo apt-get update
sudo apt-get install -y \
build-essential \
@@ -241,6 +243,7 @@ jobs:
- name: Setup sudo apt installs for ubuntu-latest
if: runner.os == 'Linux'
run: |
curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
sudo apt-get update
sudo apt-get install -y \
build-essential \
@@ -321,6 +324,7 @@ jobs:
- name: Setup sudo apt installs for ubuntu-latest
if: runner.os == 'Linux'
run: |
curl --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
sudo apt-get update
sudo apt-get install -y \
build-essential \

View File

@@ -279,8 +279,7 @@ function OpenBBMain(plotly_figure, chartdiv, csvdiv, textdiv, titlediv) {
"yaxis.exponentformat": "SI",
"yaxis.tickformat": ".0s",
"yaxis.exponentbase": 100,
}
};
Plotly.update(globals.CHART_DIV, layout_update);
}
if (globals.CHART_DIV.layout.yaxis.type == "linear" && globals.logYaxis) {
@@ -293,8 +292,7 @@ function OpenBBMain(plotly_figure, chartdiv, csvdiv, textdiv, titlediv) {
"yaxis.exponentformat": "none",
"yaxis.tickformat": null,
"yaxis.exponentbase": 10,
}
};
Plotly.update(globals.CHART_DIV, layout_update);
}
} else {
@@ -313,17 +311,14 @@ function OpenBBMain(plotly_figure, chartdiv, csvdiv, textdiv, titlediv) {
});
}
// We check to see if window.save_png is defined and true
if (window.save_image != undefined && window.export_image) {
// if is_3dmesh is true, we set the close_interval to 1000
let close_interval = is_3dmesh ? 1000 : 500;
// We get the extension of the file and check if it is valid
const extension = window.export_image
.split(".")
.pop()
.replace("jpg", "jpeg");
let filename = window.export_image.split("/").pop();
const extension = filename.split(".").pop().replace("jpg", "jpeg");
if (["jpeg", "png", "svg"].includes(extension)) {
// We run Plotly.downloadImage to save the chart as an image
@@ -331,7 +326,7 @@ function OpenBBMain(plotly_figure, chartdiv, csvdiv, textdiv, titlediv) {
format: extension,
width: globals.CHART_DIV.clientWidth,
height: globals.CHART_DIV.clientHeight,
filename: window.export_image.split("/").pop(),
filename: filename.split(".")[0],
});
}
setTimeout(function () {