From 63999cd09f5cc0e453094472f698c671c2dcfd6b Mon Sep 17 00:00:00 2001 From: Samer Albahra Date: Fri, 5 Jun 2015 23:08:58 -0500 Subject: [PATCH] Base: Rename parameter options --- application.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application.py b/application.py index 2ba0b00..a8355bb 100644 --- a/application.py +++ b/application.py @@ -370,14 +370,14 @@ def application(environ, start_response): if (pre_today >= 0): rf -= pre_today * 200 - if 'temp' in wto: - tf = tf * (wto['temp'] / 100.0) + if 't' in wto: + tf = tf * (wto['t'] / 100.0) - if 'humidity' in wto: - hf = hf * (wto['humidity'] / 100.0) + if 'h' in wto: + hf = hf * (wto['h'] / 100.0) - if 'rain' in wto: - rf = rf * (wto['rain'] / 100.0) + if 'r' in wto: + rf = rf * (wto['r'] / 100.0) scale = (int)(100 + hf + tf + rf)