Skip to content

Commit

Permalink
Fix tags topping for 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelpro authored and Pokechu22 committed Feb 17, 2022
1 parent 2057d15 commit f0f77a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion burger/toppings/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def act(aggregate, classloader, verbose=False):
if not path.startswith(prefix) or not path.endswith(suffix):
continue
key = path[len(prefix):-len(suffix)]
type, name = key.split("/", 2)
idx = key.find("/")
type, name = key[:idx], key[idx + 1:]
with classloader.open(path) as fin:
data = json.load(fin)
data["type"] = type
Expand Down

0 comments on commit f0f77a0

Please sign in to comment.