dhedlund/hms-notifier — pull request #1 by teknotus (2012-07-10 13:06:13+00:00)
Title: Made it easier to modify how report is displayed

Report can now be configured in 3 ways.

all_columns is an array of data values that could be displayed. The order of columns is the order of items in the all_columns array. Including a data point twice in this array will cause the column to appear twice.

column_names is a key value store to connect the internal names of data points with the name of the column in the generated CSV. Modifying the key in this hash is all that needs to be done to modify a column name.

display_columns turns on, and off displaying of datapoints. Setting a value of zero will cause a column to not be generated. Neither the column title, nor the actual data will be displayed.

As of this revision turning off a column does not prevent the value from being looked up in the database, and calculated it merely causes it to not be included in the report.