From 196fb56ae73ff715c6ef23a21c795b6612172ca4 Mon Sep 17 00:00:00 2001 From: Rohan Rangray Date: Sat, 30 May 2015 00:43:39 -0700 Subject: [PATCH] Another fix in the query --- flashcards/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashcards/models.py b/flashcards/models.py index 964ccd8..a8e3cd9 100644 --- a/flashcards/models.py +++ b/flashcards/models.py @@ -497,7 +497,7 @@ class JulianDay(Func): class PostgresIntervalDay(Func): function = 'EXTRACT' - template = "(((%(function)s(EPOCH FROM INTERVAL %(expressions)s) / 60) / 60) / 24)::integer" + template = "(((%(function)s(EPOCH FROM %(expressions)s) / 60) / 60) / 24)::integer" arg_joiner = ' - ' def __init__(self, *expression, **extra): -- 1.9.1