diff options
author | luxagraf <sng@luxagraf.net> | 2016-01-19 14:40:24 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-01-19 14:40:24 -0500 |
commit | 7622933e291141b5d58293eacb813d0c0635695f (patch) | |
tree | 0fd8afb12c8ff2f18a353104d2fa97be9c07c6fa /app/lib | |
parent | 0879504bd5029b2a3b9e937cb4620c4cd3108459 (diff) |
added my daily journal recording app, weather grabbing widget and
checkin model. Still need to add widget to checkin admin to
automatically grab the geodata from device.
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/templatetags/templatetags/f_to_c.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/lib/templatetags/templatetags/f_to_c.py b/app/lib/templatetags/templatetags/f_to_c.py new file mode 100644 index 0000000..343395a --- /dev/null +++ b/app/lib/templatetags/templatetags/f_to_c.py @@ -0,0 +1,7 @@ +from django import template +register = template.Library() + + +@register.filter +def f_to_c(temp): + return str(round((int(temp) - 32) * 5.0/9.0, 1)) |