Skip to content

Commit

Permalink
OPT continue if duplictes
Browse files Browse the repository at this point in the history
  • Loading branch information
Starre, Bryan van der committed Jun 24, 2023
1 parent 5516874 commit bfbb552
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fantools",
"version": "1.1.1",
"version": "1.2.1",
"homepage": ".",
"description": "fantools for KPN",
"author": "Bryan",
Expand Down
9 changes: 6 additions & 3 deletions src/views/admin/UploadMigration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<b-progress :value="loadedState" max="100" variant="success" show-progress striped :animated="animate" v-if="loadedState > 0 && loadedState != 100"></b-progress>

<template v-if="loadedState == 100">
{{ this.file.name }} is uplaoded
{{ this.file.name }} is uploaded and {{ this.duplicates.length }} duplicates found!
</template>

</b-card-body>
Expand Down Expand Up @@ -49,7 +49,8 @@ export default {
content: [],
migrations: [],
parsed: false,
loadedState: 0
loadedState: 0,
duplicates: []
}
},
Expand Down Expand Up @@ -111,7 +112,9 @@ export default {
for await (let element of this.content.data) {
if(exstingDslams.includes(element.Dslam)) {
return;
this.duplicates.push(element.Dslam);
filesProgressed++;
continue;
}
if(filesProgressed%10 === 0) {
Expand Down

0 comments on commit bfbb552

Please sign in to comment.