Skip to content

Commit

Permalink
- fix order clause for min/max in database plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinckel committed Dec 10, 2016
1 parent c4789e8 commit 5894278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def _series(self, func, start, end='now', count=100, ratio=1, update=False, step
if func not in queries:
raise NotImplementedError

order = None if func+'.order' not in queries else queries[func+'.order']
order = '' if func+'.order' not in queries else queries[func+'.order']
logs = self._fetch_log(item, queries[func], start, end, step=step, count=count, group="GROUP BY ROUND(time / :step)", order=order)
tuples = logs['tuples']
if tuples:
Expand Down

0 comments on commit 5894278

Please sign in to comment.