Skip to content

Commit 69744c8

Browse files
committed
Libraries
1 parent 7013607 commit 69744c8

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
@@ -1644,7 +1644,7 @@ def send_page(sport):
16441644
def odds_handler(sport):
16451645
team = request.forms.get('team')
16461646
home_odds, away_odds = 2.44, 3.29
1647-
response.headers['Content-Type'] ='application/json'
1647+
response.headers['Content-Type'] = 'application/json'
16481648
response.headers['Cache-Control'] = 'no-cache'
16491649
return json.dumps([team, home_odds, away_odds])
16501650
```
@@ -1653,7 +1653,7 @@ def odds_handler(sport):
16531653
```python
16541654
# $ pip3 install requests
16551655
>>> import requests
1656-
>>> url = 'http://localhost:8080/odds/football'
1656+
>>> url = 'http://localhost:8080/odds/football'
16571657
>>> data = {'team': 'arsenal f.c.'}
16581658
>>> response = requests.post(url, data=data)
16591659
>>> response.json()
@@ -1713,7 +1713,7 @@ Line # Hits Time Per Hit % Time Line Contents
17131713
```python
17141714
# $ pip3 install pycallgraph
17151715
from pycallgraph import output, PyCallGraph
1716-
from datetime import datetime
1716+
from datetime import datetime
17171717
time_str = datetime.now().strftime('%Y%m%d%H%M%S')
17181718
filename = f'profile-{time_str}.png'
17191719
drawer = output.GraphvizOutput(output_file=filename)

0 commit comments

Comments
 (0)