Skip to content

Commit

Permalink
bugfix for download quotas csv for week issue cgwire#1673
Browse files Browse the repository at this point in the history
  • Loading branch information
scott committed Feb 19, 2025
1 parent 7da9fa1 commit 31d92c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ const csv = {
let key = year
if (detailLevel === 'day') {
key = `${year}-${String(month).padStart(2, '0')}-${String(index).padStart(2, '0')}`
} else if (detailLevel === 'week') {
// in the case of week its in the format of 1999-1 not 1999-01
key = `${year}-${index}`
} else {
key = `${year}-${String(index).padStart(2, '0')}`
}
Expand Down

0 comments on commit 31d92c3

Please sign in to comment.