Skip to content

Commit

Permalink
Quote database name when retrieving tags, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
NaniteBased committed Nov 18, 2021
1 parent 3386c5c commit c1d2e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
**18/11/2021** [Version 2.4.3b]

- Avoid exception when InfluxDb database names contains non-alphanumeric characters

**16/07/2021** [Version 2.4.3]

- Fix network services instantiation
Expand Down
2 changes: 1 addition & 1 deletion Helper/influx.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _getDateTime(value: str):
cls.initialize()

# Retrieve the list of tags from the server, to separate from fields
reply = cls.client.query(f"show tag keys on {cls.database} from {measurement}")
reply = cls.client.query(f'show tag keys on "{cls.database}" from "{measurement}"')
tags = sorted([t['tagKey'] for t in reply.get_points()])

pointsPerTagSet = {}
Expand Down

0 comments on commit c1d2e1c

Please sign in to comment.