Skip to content

Commit

Permalink
Fixed more missed note -> comment
Browse files Browse the repository at this point in the history
  • Loading branch information
local-minimum committed Dec 23, 2017
1 parent db23639 commit d3ea3ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions private/magic.php
Expand Up @@ -5,7 +5,7 @@
include_once __DIR__."/".CONFIG_PATH."/config.php";
require_once __DIR__."/".SHRUB_PATH."/cron.php";
require_once __DIR__."/".SHRUB_PATH."/node/node.php";
require_once __DIR__."/".SHRUB_PATH."/note/note.php";
require_once __DIR__."/".SHRUB_PATH."/comment/comment.php";
require_once __DIR__."/".SHRUB_PATH."/grade/grade.php";

// This is a CRON job that regularly updates magic
Expand Down Expand Up @@ -188,8 +188,8 @@ function AddMagic( $name, $parent ) {
$classic_grade = sqrt($classic_team_grades * 100.0 / max(1.0, $classic_given_grades)) * 100.0 / 10.0;

// ** Calculate Feedback Score **************************************
$raw_team_feedback = noteLove_CountBySuperNotNodeAuthorKnownNotAuthor($node['parent'], $node['id'], $authors);
$raw_given_feedback = noteLove_CountBySuperNodeNotAuthorKnownNotAuthor($node['parent'], $node['id'], $authors);
$raw_team_feedback = commentLove_CountBySuperNotNodeAuthorKnownNotAuthor($node['parent'], $node['id'], $authors);
$raw_given_feedback = commentLove_CountBySuperNodeNotAuthorKnownNotAuthor($node['parent'], $node['id'], $authors);

$team_feedback = $raw_team_feedback / FEEDBACK_PER_NOTE;
$given_feedback = $raw_given_feedback / FEEDBACK_PER_NOTE;
Expand Down

0 comments on commit d3ea3ff

Please sign in to comment.