genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
401 stars 157 forks source link

- Statistics settings made configurable. Date filter support for DB queries. #119

Closed hybridview closed 9 years ago

hybridview commented 9 years ago

Moved some hard coded statistics settings to config file. Parameterized DB queries to prevent SQL injection. Added method overrides to support upcoming date range filtering for statistics. UI support for new config settings will be in separate commit.

These changes have been tested locally in my dev instance. All statistics methods appear to be working as expected. New settings are set to defaults (defaults being original hard-coded values).

genemars commented 9 years ago

@hybridview please sync with latest commit so it can be automatically merged.

hybridview commented 9 years ago

Wow! I see a ton of great updates for the statistics! I'll work on synchronizing with your updates tomorrow.