Skip to content

Commit 8cd9f2e

Browse files
committed
Rest
1 parent aadccc5 commit 8cd9f2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,12 +1234,12 @@ def send_page(sport):
12341234
### REST request
12351235
```python
12361236
@post('/p/<sport>')
1237-
def p_handler(sport):
1237+
def odds_handler(sport):
12381238
team = bottle.request.forms.get('team')
12391239
team = unquote(team).lower()
12401240

12411241
db = sqlite3.connect(<db_path>)
1242-
home_odds, away_odds = get_p(db, sport, team)
1242+
home_odds, away_odds = get_odds(db, sport, team)
12431243
db.close()
12441244

12451245
response.headers['Content-Type'] = 'application/json'

0 commit comments

Comments
 (0)