diff --git a/influxdb.py b/influxdb.py index 726b88c..a9d71cb 100644 --- a/influxdb.py +++ b/influxdb.py @@ -120,7 +120,7 @@ class InfluxDataGetter: Parameters : variables ([(str)]) : an array of variable names (Influx) to get the curves for time ([int]) : the timerange we want the values in. It consists of two values which are Unix timestamps in seconds, first included, second excluded. - interval (int) : the interval (resolution) of the values to get (in nanoseconds) + interval (int|None) : the interval (resolution) of the values to get (in nanoseconds) Returns : {(str):[[(int), (float)]]} : a dictionnary of curves. The key is the name of the influx variable, and the value is an array of pairs (also arrays), the first value being the Unix timestamp in second (x), the seconds being the value (y). @@ -131,7 +131,6 @@ class InfluxDataGetter: variable_name_for_query = var_param[0] parameter = "value" if len(var_param) == 1 else var_param[1] curve = self._get_curve(variable_name_for_query, parameter, time, interval) - # if len(curve) > 0: res[variable] = curve return res