Commit 196fb56ae73ff715c6ef23a21c795b6612172ca4

Authored by Rohan Rangray
1 parent c21d1a7f55
Exists in master

Another fix in the query

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

flashcards/models.py View file @ 196fb56
... ... @@ -497,7 +497,7 @@
497 497  
498 498 class PostgresIntervalDay(Func):
499 499 function = 'EXTRACT'
500   - template = "(((%(function)s(EPOCH FROM INTERVAL %(expressions)s) / 60) / 60) / 24)::integer"
  500 + template = "(((%(function)s(EPOCH FROM %(expressions)s) / 60) / 60) / 24)::integer"
501 501 arg_joiner = ' - '
502 502  
503 503 def __init__(self, *expression, **extra):