Explorar el Código

show all time history

Pi hace 2 años
padre
commit
0e19282245
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      app/price_view.py

+ 6 - 6
app/price_view.py

@@ -28,12 +28,12 @@ def get_where(product, unit, organic=None, limit='90 days'):
             SQL('='),
             Literal(organic),
         ]))
-    where.append(
-        SQL("{ts} at time zone 'utc' BETWEEN now() - {interval} AND now()").format(
-            ts=Identifier('ts'),
-            interval=SQL("{literal}::interval").format(literal=Literal(limit))
-        )
-    )
+    #where.append(
+    #    SQL("{ts} at time zone 'utc' BETWEEN now() - {interval} AND now()").format(
+    #        ts=Identifier('ts'),
+    #        interval=SQL("{literal}::interval").format(literal=Literal(limit))
+    #    )
+    #)
     where.append(
         SQL("(SELECT id FROM units WHERE name = {unit}) = conv._to").format(
             unit=Literal(unit),