mattdrayer/api: Check course average aggregation result before modifying