@@ -29,7 +29,7 @@ def get_where(product, unit, organic=None, limit='90 days'):
Literal(organic),
]))
where.append(
- SQL("{ts} at time zone 'utc' BETWEEN now()::date - {interval} AND now()::date").format(
+ SQL("{ts} at time zone 'utc' BETWEEN now() - {interval} AND now()").format(
ts=Identifier('ts'),
interval=SQL("{literal}::interval").format(literal=Literal(limit))
)