Jelajahi Sumber

show all time history

Pi 2 tahun lalu
induk
melakukan
0e19282245
1 mengubah file dengan 6 tambahan dan 6 penghapusan
  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),