From 7622933e291141b5d58293eacb813d0c0635695f Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 19 Jan 2016 14:40:24 -0500 Subject: 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. --- app/lib/templatetags/templatetags/f_to_c.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/lib/templatetags/templatetags/f_to_c.py (limited to 'app/lib') 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)) -- cgit v1.2.3-70-g09d2