Browse Source

NounService was calling its output an adjecive. Fixed.

zed 4 years ago
parent
commit
bfa642a62c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/NounService.py

+ 2 - 2
src/NounService.py

@@ -33,7 +33,7 @@ class NounGetterJSON:
         """Handle GET requests"""
         resp.status = falcon.HTTP_200
         chosenWord = self.words.getWord()
-        resp.body = '{{"adjective":"{0}"}}'.format(chosenWord)
+        resp.body = '{{"noun":"{0}"}}'.format(chosenWord)
 
 class NounGetterXML:
     def __init__(self):
@@ -43,5 +43,5 @@ class NounGetterXML:
         """Handle GET requests"""
         resp.status = falcon.HTTP_200
         chosenWord = self.words.getWord()
-        resp.body = '<adjective>{0}</adjective>'.format(chosenWord)
+        resp.body = '<noun>{0}</noun>'.format(chosenWord)