Skip to content

Commit 9fddc08

Browse files
committed
include tags in group by query
1 parent 3d1f1ce commit 9fddc08

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

influxdb/resultset.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,13 @@ def _get_points_for_series(self, series):
186186
:return: Generator of dicts
187187
"""
188188
for point in series.get('values', []):
189-
yield self.point_from_cols_vals(
190-
series['columns'],
191-
point
192-
)
189+
yield {
190+
**self.point_from_cols_vals(
191+
series['columns'],
192+
point
193+
),
194+
**series.get('tags', {})
195+
}
193196

194197
@staticmethod
195198
def point_from_cols_vals(cols, vals):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy