Skip to content

Commit 379a150

Browse files
authored
Merge pull request #261 from nexB/fix-no-val-counts
Bar chart filter counts now ignore directories #183
2 parents bcd2211 + 13e2e4f commit 379a150

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

assets/app/js/controllers/aboutCodeBarChart.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ class AboutCodeBarChart extends Controller {
8585
const attribute = this.chartAttributesSelect.val();
8686
const query = {
8787
attributes: [Sequelize.fn('TRIM', Sequelize.col(attribute)), attribute],
88-
where: { path: { $like: `${this.selectedPath()}%` } }
88+
where: {
89+
path: { $like: `${this.selectedPath()}%` },
90+
type: { $ne: 'directory' },
91+
}
8992
};
93+
9094

9195
this.progressBar.showIndeterminate();
9296
this.barChartData = this.db().sync
@@ -134,4 +138,4 @@ class AboutCodeBarChart extends Controller {
134138
}
135139
}
136140

137-
module.exports = AboutCodeBarChart;
141+
module.exports = AboutCodeBarChart;

0 commit comments

Comments
 (0)