From 8cd9f2ed8636caabd2f6ac3f53f0d5843227ba0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 26 Dec 2018 11:59:52 +0100 Subject: [PATCH] Rest --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ddca1cb..cef7340 100644 --- a/README.md +++ b/README.md @@ -1234,12 +1234,12 @@ def send_page(sport): ### REST request ```python @post('/p/') -def p_handler(sport): +def odds_handler(sport): team = bottle.request.forms.get('team') team = unquote(team).lower() db = sqlite3.connect() - home_odds, away_odds = get_p(db, sport, team) + home_odds, away_odds = get_odds(db, sport, team) db.close() response.headers['Content-Type'] = 'application/json'