Skip to content

Commit

Permalink
fix: ordered dicts aren't indexable
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Sep 13, 2021
1 parent ea4d865 commit b4a07c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def show_summary(lib, query, category, stats, reverse):
"""
items = lib.items(query)
stats = parse_stats(stats)
sort_stat = stats.keys()[0]
sort_stat = list(stats.keys())[0]

for stat in stats.values():
set_str_converter(stat, type(getattr(items[0], stat["field"])))
Expand Down

0 comments on commit b4a07c6

Please sign in to comment.