source:
trunk/scripts/recompute-task-ratings
@
1184
| Revision 1119, 317 bytes checked in by wefgef, 2 years ago (diff) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | #! /usr/bin/env php |
| 2 | <?php |
| 3 | require_once(dirname($argv[0]) . "/utilities.php"); |
| 4 | require_once(IA_ROOT_DIR . "common/db/task_rating.php"); |
| 5 | |
| 6 | db_connect(); |
| 7 | |
| 8 | $query = "SELECT DISTINCT task_id FROM ia_task_ratings"; |
| 9 | |
| 10 | $results = db_fetch_all($query); |
| 11 | foreach ($results as $row) { |
| 12 | task_rating_update($row['task_id']); |
| 13 | } |
| 14 | ?> |
Note: See TracBrowser
for help on using the repository browser.
![[infoarena] development](/chrome/site/logo.png)