Skip to content

Commit

Permalink
Fix implementation flaw reported at #32
Browse files Browse the repository at this point in the history
  TypeError: '<' not supported between instances of 'dict' and 'dict'
  • Loading branch information
amotl committed Mar 25, 2022
1 parent 3d7dc3c commit 6e3b440
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ in progress
- Tests: Make test case for `explore datasources` use _two_ data sources
- Tests: Mimic Grafana 7/8 on datasource references within dashboards, newer
versions have objects (uid, type) instead of bare names
- Fix implementation flaw reported at #32. Thanks, @IgorOhrimenko and @carpenterbees!


2022-02-03 0.13.1
Expand Down
2 changes: 1 addition & 1 deletion grafana_wtf/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def collect_datasource_items(element):
ds = dict(ds)
if ds not in items:
items.append(ds)
return sorted(items)
return items

def index_dashboards(self):

Expand Down

0 comments on commit 6e3b440

Please sign in to comment.