old_contents: """Model classes for SacTraffic.
  
  """
  
  import time
  
  from datetime import datetime, timedelta
  
  from google.appengine.ext import ndb
  
  from utils import tzinfo
  
  class CHPData(ndb.Model):
  	"""Holds the last successful CHP data fetch.
  
  	"""
  	data = ndb.BlobProperty(required=True)
  	updated = ndb.DateTimeProperty(auto_now=True)
  
  	@classmethod
  	def last_updated(cls):
  		"""Gets the last updated date of the CHP Data.
  
  		"""
  		chp_data_key = ndb.Key(cls, 'chp_data')
  		chp_data = chp_data_key.get()
  		return chp_data.updated
  
  
  class CHPIncident(ndb.Model):
  	"""Represents a CHP Incident.
  
  	"""
  	CenterID = ndb.StringProperty(required=True)
  	DispatchID = ndb.StringProperty(required=True)
  	LogID = ndb.StringProperty(required=True)
  	LogTime = ndb.DateTimeProperty()
  	LogType = ndb.StringProperty()
  	LogTypeID = ndb.StringProperty()
  	Location = ndb.TextProperty()
  	LocationDesc = ndb.TextProperty()
  	Area = ndb.StringProperty()
  	LogDetails = ndb.BlobProperty()
  	geolocation = ndb.GeoPtProperty()
  	city = ndb.StringProperty()
  	updated = ndb.DateTimeProperty(auto_now=True)
  
  	@property
  	def logTimeEpoch(self):
  		return int(time.mktime(self.LogTime.timetuple()))
  
  	@property
  	def logTimeLocal(self):
  		pacific_tz = tzinfo.Pacific()
  		return (self.LogTime + pacific_tz.utcoffset(self.LogTime))
  
new_contents: """Model classes for SacTraffic.
  
  """
  
  import time
  
  from datetime import datetime, timedelta
  
  from google.appengine.ext import ndb
  
  from utils import tzinfo
  
  class CHPData(ndb.Model):
  	"""Holds the last successful CHP data fetch.
  
  	"""
  	data = ndb.BlobProperty(required=True)
  	updated = ndb.DateTimeProperty(auto_now=True)
  
  	@classmethod
  	def last_updated(cls):
  		"""Gets the last updated date of the CHP Data.
  
  		"""
  		chp_data_key = ndb.Key(cls, 'chp_data')
  		chp_data = chp_data_key.get()
  		if chp_data is not None:
  			return chp_data.updated
  		else:
  			return None
  
  
  class CHPIncident(ndb.Model):
  	"""Represents a CHP Incident.
  
  	"""
  	CenterID = ndb.StringProperty(required=True)
  	DispatchID = ndb.StringProperty(required=True)
  	LogID = ndb.StringProperty(required=True)
  	LogTime = ndb.DateTimeProperty()
  	LogType = ndb.StringProperty()
  	LogTypeID = ndb.StringProperty()
  	Location = ndb.TextProperty()
  	LocationDesc = ndb.TextProperty()
  	Area = ndb.StringProperty()
  	LogDetails = ndb.BlobProperty()
  	geolocation = ndb.GeoPtProperty()
  	city = ndb.StringProperty()
  	updated = ndb.DateTimeProperty(auto_now=True)
  
  	@property
  	def logTimeEpoch(self):
  		return int(time.mktime(self.LogTime.timetuple()))
  
  	@property
  	def logTimeLocal(self):
  		pacific_tz = tzinfo.Pacific()
  		return (self.LogTime + pacific_tz.utcoffset(self.LogTime))
  
subject: Fix the case when no records are returned.