Guest User

Untitled

a guest
Dec 10th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. class WeatherHandler(BaseWebHandler):
  2. def get(self):
  3. params = self.get_common_params()
  4. params["current"] = "weather"
  5. location = self.request.get("location")
  6. if not location:
  7. location = "Malaga, es"
  8. params["weather"] = get_weather_info(location)
  9. return self.render_template("weather.html", params)
Add Comment
Please, Sign In to add comment