Skip to content

Commit

Permalink
update predtimechart to 2.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Nov 4, 2024
1 parent 75b690d commit 03fa4d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions static/resources/predtimechart.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import App from 'https://cdn.jsdelivr.net/gh/reichlab/predtimechart@2.0.10/dist/predtimechart.bundle.js';
import App from 'https://cdn.jsdelivr.net/gh/reichlab/predtimechart@2.0.11/dist/predtimechart.bundle.js';
document.predtimechart = App; // for debugging

function replace_chars(the_string) {
Expand Down Expand Up @@ -34,10 +34,8 @@ function _fetchData(isForecast, targetKey, taskIDs, referenceDate) {
const forecast_file_name = `${slug}_${referenceDate}.json`;
const target_file_name = `${slug}_${tagetDate}.json`;
if (isForecast) {
// target_path = `./static/data/forecasts/${file_name}`;
target_path = `${root}/forecasts/${forecast_file_name}`;
} else {
// target_path = `./static/data/truth/${file_name}`;
target_path = `${root}/targets/${target_file_name}`;
}
return fetch(target_path); // Pwomise?
Expand Down

0 comments on commit 03fa4d2

Please sign in to comment.