Skip to content

Commit

Permalink
Add support for time_bucket offset and origin parameters. For closing #…
Browse files Browse the repository at this point in the history
  • Loading branch information
schlunsen committed Sep 25, 2021
1 parent 7b4f5c4 commit facd461
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion timescale/db/models/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def __init__(self, expression, interval, offset=None, origin=None, *args, **kwar
self.template = "%(function)s(%(expressions)s, '%(offset)s'::INTERVAL)"
return super().__init__(interval, expression, offset=offset, origin=origin, output_field=output_field)
if origin:

self.template = "%(function)s(%(expressions)s, '%(origin)s'::TIMESTAMP)"
return super().__init__(interval, expression, offset=offset, origin=origin, output_field=output_field)
super().__init__(interval, expression, output_field=output_field)
Expand Down

0 comments on commit facd461

Please sign in to comment.