Skip to content

Commit 485c137

Browse files
committed
Fix for summary stats, version bump
1 parent 96b78c3 commit 485c137

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

lib/gtfs-to-html.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ module.exports = selectedConfig => {
6666
return fs.ensureDir(path.join(exportPath, datePath))
6767
.then(() => utils.generateHTML(agencyKey, timetablePage, config))
6868
.then(results => {
69-
Object.assign(outputStats, results.stats);
69+
_.each(outputStats, (stat, key) => {
70+
if (results.stats[key]) {
71+
outputStats[key] += results.stats[key];
72+
}
73+
});
7074
return fileUtils.writeFile(path.join(exportPath, datePath), timetablePage.filename, results.html);
7175
});
7276
}));

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gtfs-to-html",
33
"description": "Build transit timetables in HTML from a GTFS file",
4-
"version": "0.8.0",
4+
"version": "0.8.1",
55
"keywords": [
66
"transit",
77
"gtfs",

0 commit comments

Comments
 (0)