Analytics/app.py - Imported the new Attribute range DB model
Analytics/importers/air_quality.py,| greenwich.py | lisbon.py | tfl_bike_points | milan.py | - appended the attribute range decorator to all the importers
Analytics/models/attributes.py - Added methods to find the min and max values for an attribute and to retrieve the most recently added timestamp from an attribute table
New files
Analytics/importers/attr_range_decorator.py - Queries all attribute tables for their maximum and minimum values after an importer is run
Analytics/models/attribute_range.py - DB model class to store the min and max values of each attribute
Analytics/test_alert_widget_decorator.py - tests the functionality of the alert widget decorator
Updated files
Analytics/app.py - Imported the new Attribute range DB model Analytics/importers/air_quality.py,| greenwich.py | lisbon.py | tfl_bike_points | milan.py | - appended the attribute range decorator to all the importers Analytics/models/attributes.py - Added methods to find the min and max values for an attribute and to retrieve the most recently added timestamp from an attribute table
New files Analytics/importers/attr_range_decorator.py - Queries all attribute tables for their maximum and minimum values after an importer is run Analytics/models/attribute_range.py - DB model class to store the min and max values of each attribute Analytics/test_alert_widget_decorator.py - tests the functionality of the alert widget decorator