Skip to content
Snippets Groups Projects
Unverified Commit e3779914 authored by David Hoese's avatar David Hoese
Browse files

Fix date strings passed to influx

Date strings must be wrapped in single quotes
parent 5aad1478
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ def parse_dt(d):
elif isinstance(d, timedelta):
return 'now() - {:d}s'.format(int(d.total_seconds()))
else:
return d.strftime('%Y-%m-%dT%H:%M:%SZ')
return d.strftime('\'%Y-%m-%dT%H:%M:%SZ\'')
def build_queries(symbols, begin, end, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment