Skip to content
Permalink
Browse files

Fixed more missed note -> comment

  • Loading branch information...
local-minimum committed Dec 23, 2017
1 parent db23639 commit d3ea3ff57a147bb3bd13b6b053ea1c05218bbe8a
Showing with 3 additions and 3 deletions.
  1. +3 −3 private/magic.php
@@ -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
@@ -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;

0 comments on commit d3ea3ff

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.