From 720508e0dba0a6a50e00ef94abf0a6196b11007f Mon Sep 17 00:00:00 2001 From: Keerthana-A-V Date: Sat, 4 Dec 2021 17:34:41 +0530 Subject: [PATCH 1/6] upvote --- index.html | 9404 +--------------------------------------------------- 1 file changed, 14 insertions(+), 9390 deletions(-) diff --git a/index.html b/index.html index f8490c1..a12c4ba 100644 --- a/index.html +++ b/index.html @@ -10988,44 +10988,11 @@
<\/script> - + + + + + + + + + + + + + + + + + + + + + + + ` + return t; + }, + determine_contributions: function () { + try { + const contributions_by_sections = {}; + const contributions_by_floid = {}; + const data = Object.values(floGlobals.appObjects[cloudArticleApp.SUBJECT])[0].data; + const content_data = Object.values(data); + + for (const sections_list of content_data) { + for (const sec_iters in sections_list.section_iters) { + const section_contributors = sections_list.section_iters[sec_iters]; + if (typeof contributions_by_sections[sections_list.section_details.section_name] !== "object") { + contributions_by_sections[sections_list.section_details.section_name] = []; + } + if (typeof contributions_by_floid[section_contributors.content_creator] !== "object") { + contributions_by_floid[section_contributors.content_creator] = []; + } + contributions_by_sections[sections_list.section_details.section_name].push({ + content_creator: section_contributors.content_creator, + score: section_contributors.score + }); + + contributions_by_floid[section_contributors.content_creator].push({ + section_name: sections_list.section_details.section_name, + score: section_contributors.score + }); + } + } + + return { + contributions_by_sections, + contributions_by_floid + } + + } catch (error) { + console.error(error); + } + }, + + determine_scores_by_id: function () { + try { + const get_contributions = cloudArticleApp.determine_contributions(); + + const report_card = Object.keys(get_contributions.contributions_by_floid) + .map(m => { + let get_contributions_data = get_contributions.contributions_by_floid[m]; + let total_score = get_contributions_data.reduce((acc, cv) => acc + cv.score, 0); + let total_contributions = get_contributions_data.length; + let avg_score = total_score / total_contributions; + + return { + [m]: { + total_score, avg_score, total_contributions + } + } + }); + + console.log(report_card); + + return report_card; + + // for(rc of report_card) { + // let k = Object.values(rc)[0]; + // console.log(k.score) + // } + + } catch (error) { + console.error(error); + } + } } From 7dc48d3590dbb7b2ac1753f2f853c3dec17ce9ae Mon Sep 17 00:00:00 2001 From: Keerthana-A-V Date: Mon, 6 Dec 2021 22:09:30 +0530 Subject: [PATCH 3/6] upvote --- index.html | 10207 +-------------------------------------------------- 1 file changed, 53 insertions(+), 10154 deletions(-) diff --git a/index.html b/index.html index ef70187..c2ecbcd 100644 --- a/index.html +++ b/index.html @@ -10990,7 +10990,7 @@
@@ -11061,10162 +11061,62 @@

Settings



- - - - - - - - - - - - - - - - - - - - - - - - - ` - return t; - }, - determine_contributions: function () { - try { - const contributions_by_sections = {}; - const contributions_by_floid = {}; - const data = Object.values(floGlobals.appObjects[cloudArticleApp.SUBJECT])[0].data; - const content_data = Object.values(data); - - for (const sections_list of content_data) { - for (const sec_iters in sections_list.section_iters) { - const section_contributors = sections_list.section_iters[sec_iters]; - if (typeof contributions_by_sections[sections_list.section_details.section_name] !== "object") { - contributions_by_sections[sections_list.section_details.section_name] = []; - } - if (typeof contributions_by_floid[section_contributors.content_creator] !== "object") { - contributions_by_floid[section_contributors.content_creator] = []; - } - contributions_by_sections[sections_list.section_details.section_name].push({ - content_creator: section_contributors.content_creator, - score: section_contributors.score - }); - - contributions_by_floid[section_contributors.content_creator].push({ - section_name: sections_list.section_details.section_name, - score: section_contributors.score - }); - } - } - - return { - contributions_by_sections, - contributions_by_floid - } - - } catch (error) { - console.error(error); - } - }, - - determine_scores_by_id: function () { - try { - const get_contributions = cloudArticleApp.determine_contributions(); - - const report_card = Object.keys(get_contributions.contributions_by_floid) - .map(m => { - let get_contributions_data = get_contributions.contributions_by_floid[m]; - let total_score = get_contributions_data.reduce((acc, cv) => acc + cv.score, 0); - let total_contributions = get_contributions_data.length; - let avg_score = total_score / total_contributions; - - return { - [m]: { - total_score, avg_score, total_contributions + } + + return { + contributions_by_sections, + contributions_by_floid + } + + } catch (error) { + console.error(error); + } + }, + + determine_scores_by_id: function () { + try { + const get_contributions = cloudArticleApp.determine_contributions(); + + const report_card = Object.keys(get_contributions.contributions_by_floid) + .map(m => { + let get_contributions_data = get_contributions.contributions_by_floid[m]; + let total_score = get_contributions_data.reduce((acc, cv) => acc + cv.score, 0); + let total_contributions = get_contributions_data.length; + let avg_score = total_score / total_contributions; + + return { + [m]: { + total_score, avg_score, total_contributions } } }); @@ -21235,7 +11135,6 @@

Settings

} } } - From 696adc79a452a0ef1c8f570c2ebc11d7f7d37c7b Mon Sep 17 00:00:00 2001 From: Keerthana-A-V Date: Sat, 11 Dec 2021 22:27:43 +0530 Subject: [PATCH 4/6] upvote --- index.html | 10683 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 10681 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c2ecbcd..c60e776 100644 --- a/index.html +++ b/index.html @@ -10991,11 +10991,1284 @@
<\/script> +