From 3ae1097b22fe72a81515f1f05397092b875ee4a5 Mon Sep 17 00:00:00 2001 From: l_samenv Date: Mon, 9 Sep 2024 14:22:34 +0200 Subject: [PATCH] Ended doc for influxdb.py --- influxdb.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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