Skip to content

Commit

Permalink
Fix gamedata/spells endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryGreatFrog committed Sep 23, 2024
1 parent 51fb546 commit 4541d8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion blueprints/gamedata.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ def get_limited_use():
"""Returns a list of valid entities for use in building an AbilityReference in the automation builder."""
return success(compendium.raw_limiteduse)


@gamedata.route("spells", methods=["GET"])
def get_spells():
"""Returns a list of valid entities for use in building a Cast Spell node in the automation builder."""
return success(compendium.raw_spells)
return success({f"{t['name']} ({t['source']})": t["id"] for t in compendium.raw_spells})


@gamedata.route("describable", methods=["GET"])
def get_describables():
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ services:
build:
context: .
dockerfile: Dockerfile-dev
container_name: avrae_io
container_name: avrae_service
ports:
- "8000:8080"
- "58000:8000"
environment:
- NODE_ENV=development

0 comments on commit 4541d8d

Please sign in to comment.