source: trunk/scripts/recompute-task-ratings @ 1184

Revision 1119, 317 bytes checked in by wefgef, 2 years ago (diff)

Adds a new difficulty column for Tasks macro.

Also made a minor change in the look of the table.

REVIEW URL: http://reviewboard.infoarena.ro/r/144/

  • Property svn:executable set to *
Line 
1#! /usr/bin/env php
2<?php
3require_once(dirname($argv[0]) . "/utilities.php");
4require_once(IA_ROOT_DIR . "common/db/task_rating.php");
5
6db_connect();
7
8$query = "SELECT DISTINCT task_id FROM ia_task_ratings";
9
10$results = db_fetch_all($query);
11foreach ($results as $row) {
12    task_rating_update($row['task_id']);
13}
14?>
Note: See TracBrowser for help on using the repository browser.