Skip to content

Commit

Permalink
backend: automatically load Actions and fix available-action interfac…
Browse files Browse the repository at this point in the history
…e issue
  • Loading branch information
Toni000 committed Apr 22, 2024
1 parent c10481a commit ad183f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/dps_training_k/deployment/django/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if [ "${RUN_MIGRATIONS:-0}" = "1" ]; then
python manage.py makemigrations
python manage.py migrate
python manage.py collectstatic --noinput
python manage.py minimal_actions
fi

exec "$@"
2 changes: 1 addition & 1 deletion backend/dps_training_k/game/consumers/abstract_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@ def send_available_actions(self):
for action in actions
]
actions = json.dumps({"actions": actions})
self.send_event(self.OutgoingMessageTypes.AVAILABLE_ACTIONS, actions=actions)
self.send_event(self.OutgoingMessageTypes.AVAILABLE_ACTIONS, availableActions=actions)

0 comments on commit ad183f2

Please sign in to comment.