def get_style(time_to_close):
	"""
	Takes the remaining open time for a location and returns an HTML style
	string to be used on the row in the page. Currently, this only
	includes background color.
	"""

	if time_to_close < 60 * 60:
		# Red for times less than one hour
		return 'background:#ffcccc'
	if time_to_close < 60 * 60 * 2:
		# yellow for times less than two hours
		return 'background:#ffffcc'
	# green otherwise
	return 'background:#ccffcc'