Skip to content

Commit

Permalink
added new function for general count of fields #1247
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Oct 16, 2023
1 parent c8e61b1 commit b508c4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dataedit/static/peer_review/opr_reviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,12 @@ window.addEventListener('DOMContentLoaded', function() {
updatePercentageDisplay() ;
});

function getTotalFieldCount() {
var allFields = makeFieldList();
return allFields.length;
}


function calculateOkPercentage(stateDict) {
let totalCount = Object.keys(stateDict).length;
let okCount = 0;
Expand Down

0 comments on commit b508c4a

Please sign in to comment.