Skip to content
Browse files

cleanup

  • Loading branch information...
1 parent 6c5b277 commit 1c0985eda761606d761078fab5004198d178c93e @zebpalmer committed Mar 10, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 weatheralerts/weather_alerts.py
View
4 weatheralerts/weather_alerts.py
@@ -16,6 +16,7 @@ def __init__(self, state=None, samecodes=None, load=True, cachetime=3):
load alerts.
'''
self._alerts = None
+ self._feed = None
self.geo = GeoDB()
self.state = state
self.scope = 'US'
@@ -56,7 +57,6 @@ def refresh(self, force=False):
self._feed.refresh()
self._alerts = CapParser(self._feed.raw_cap(), geo=self.geo).get_alerts()
-
@property
def alerts(self):
if self.samecodes is not None:
@@ -84,7 +84,7 @@ def county_state_alerts(self, county, state):
return self.samecode_alerts(samecode)
def event_state_counties(self):
- '''DEPRICATED: this will be moved elsewhere or dropped in the near future, stop using it.
+ '''DEPRECATED: this will be moved elsewhere or dropped in the near future, stop using it.
Return an event type and it's state(s) and counties (consolidated)'''
# FIXME: most of this logic should be moved to the alert instance and refactored
for alert in self._alerts:

0 comments on commit 1c0985e

Please sign in to comment.
Something went wrong with that request. Please try again.