Skip to content

Commit 0e16dbe

Browse files
committed
Add files_count to JSON export #198
* Add ScanCode files_count to Component and ScanCode export Signed-off-by: Jillian Daguil <[email protected]>
1 parent 12a6926 commit 0e16dbe

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

assets/app/js/renderer.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,18 @@ $(document).ready(function () {
320320
}
321321
});
322322

323-
Promise.all([aboutCodeInfoPromise, clueFilesPromise, componentsPromise])
324-
.then(([aboutCodeInfo, clueFiles, components]) => {
323+
let filesCountPromise = aboutCodeDB.getFileCount({
324+
attributes: {
325+
exclude: ["id", "createdAt", "updatedAt"]
326+
}
327+
});
328+
329+
Promise.all([aboutCodeInfoPromise, filesCountPromise, clueFilesPromise, componentsPromise])
330+
.then(([aboutCodeInfo, filesCount, clueFiles, components]) => {
325331
let json = {
326332
aboutcode_manager_notice: aboutCodeInfo.notice,
327333
aboutcode_manager_version: aboutCodeInfo.version,
334+
files_count: filesCount,
328335
files: clueFiles,
329336
components: components
330337
};

0 commit comments

Comments
 (0)