Skip to content

Commit

Permalink
Update dam_details_fetcher.js
Browse files Browse the repository at this point in the history
  • Loading branch information
amith-vp authored Jul 2, 2024
1 parent 4f7152b commit 6369171
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dam_details_fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ async function fetchDamDetails() {
for (const file of files) {
if (file.endsWith('.json')) {
const damName = file.replace('historic_data_', '').replace('.json', '').replace(/_/g, ' ');
console.log(damName);
console.log(foldername);
console.log(file);
const data = JSON.parse(await fs.readFile(`${folderName}/${file}`, 'utf8'));
existingData[damName] = data;
}
Expand Down

0 comments on commit 6369171

Please sign in to comment.