Skip to content

Commit

Permalink
Fixed parsing of VDB Deck-In urls
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-panhaleux committed Jan 9, 2025
1 parent 9406b72 commit edcdd51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Changelog
----------------

- Add vtesdecks.com as deck provider

- Fixed parsing of VDB Deck-In urls

4.3 (2024-10-05)
----------------
Expand Down
6 changes: 3 additions & 3 deletions krcg/deck.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ def from_url(cls, url: str):
return cls.from_vdb(params["id"][0])
elif result.fragment:
ret = cls()
ret.name = params.get("name", None)
ret.author = params.get("author", None)
ret.comments = params.get("description", "")
ret.name = params.get("name", [None])[0]
ret.author = params.get("author", [None])[0]
ret.comments = params.get("description", [""])[0]
if not vtes.VTES:
vtes.VTES.load()
for item in result.fragment.split(";"):
Expand Down

0 comments on commit edcdd51

Please sign in to comment.