Skip to content

Commit

Permalink
do not add empty usages to dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
lewurm committed Dec 27, 2023
1 parent 10907a3 commit 7dc2751
Show file tree
Hide file tree
Showing 2 changed files with 26,597 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,10 @@ class Netzbetreiber {
}

var valueUsage = entry[this.matchUsage(entry)];
var parsedUsage = valueUsage === "" || valueUsage === undefined ? 0.0 : this.usageParser(valueUsage);

if (valueUsage === "" || valueUsage === undefined) {
return null;
}
var parsedUsage = this.usageParser(valueUsage);

if (this.fixupTimestamp) {
/* most Netzbetreiber specify the start date, for some it's ambigious and only obvious by looking at the first and last entry of a single day export, e.g.
Expand Down
Loading

0 comments on commit 7dc2751

Please sign in to comment.