Skip to content

Commit 79b54d8

Browse files
committed
Web
1 parent 43f252b commit 79b54d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,16 +1535,16 @@ def odds_handler(sport):
15351535
home_odds, away_odds = 2.44, 3.29
15361536
response.headers['Content-Type'] = 'application/json'
15371537
response.headers['Cache-Control'] = 'no-cache'
1538-
return json.dumps([home_odds, away_odds])
1538+
return json.dumps([team, home_odds, away_odds])
15391539
```
15401540

15411541
#### Test:
15421542
```python
15431543
# $ pip3 install requests
15441544
>>> import requests
1545-
>>> r = requests.post('http://localhost:8080/odds/soccer', data={'team': 'arsenal'})
1545+
>>> r = requests.post('http://localhost:8080/odds/soccer', data={'team': 'arsenal f.c.'})
15461546
>>> r.json()
1547-
[2.44, 3.29]
1547+
['arsenal f.c.', 2.44, 3.29]
15481548
```
15491549

15501550

0 commit comments

Comments
 (0)