edx/edx-platform — pull request #2461 by flowerhack (2014-02-04 18:37:37+00:00)
Title: Fixed 500ing CSV reports

The more query-intensive CSV reports use the function use_read_replica_if_available to force them to use the read replica if they can.

Some misplaced parenthesis resulted in this function being called on ints and dicts instead of queries, causing 500's on download attempts.

This issue was not evident on sandbox/devstack/stage, but the use_read_replica_if_available function was added after load testing on dev, which is probably why it wasn't caught on dev. Sorry :(