Explorar o código

corrected time format in query

tanja %!s(int64=3) %!d(string=hai) anos
pai
achega
f98b17f75f
Modificáronse 1 ficheiros con 1 adicións e 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 +\