Skip to content

Commit

Permalink
fix misspelling in generic message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharynne Azhar committed Aug 16, 2016
1 parent f8b87d6 commit 0f2a073
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ def cancel_game(self, request):
game = get_by_urlsafe(request.urlsafe_game_key, Game)
if game:
game.key.delete()
return GenericMessage(message='Game by {} was canceled')\
.format(game.user_name)
return GenericMessage(message='Game was canceled')
else:
raise endpoints.NotFoundException('Game not found!')

Expand Down
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def to_form(self, message):


class GenericMessage(messages.Message):
"""StringMessage-- outbound (single) string message"""
"""GenericMessage-- outbound (single) string message"""
message = messages.StringField(1, required=True)


Expand Down

0 comments on commit 0f2a073

Please sign in to comment.