Explorar el Código

corrected time format in query

tanja hace 3 años
padre
commit
f98b17f75f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      cdplib/db_handlers/InfluxdbHandler.py

+ 1 - 1
cdplib/db_handlers/InfluxdbHandler.py

@@ -110,7 +110,7 @@ class InfluxdbHandler:
             start = datetime.strftime(start, format="%Y-%m-%dT%H:%M:%SZ")
 
         if not isinstance(stop, str):
-            start = datetime.strftime(stop, format="%Y-%m-%dT%H:%M:%SZ")
+            stop = datetime.strftime(stop, format="%Y-%m-%dT%H:%M:%SZ")
 
         query = 'SELECT ' +\
                 columns +\