fix
This commit is contained in:
parent
91d017044b
commit
12a14f1a26
1 changed files with 2 additions and 2 deletions
4
fetch.py
4
fetch.py
|
@ -2,7 +2,7 @@ import requests
|
||||||
|
|
||||||
def fetchQuote(quoteId):
|
def fetchQuote(quoteId):
|
||||||
quote = requests.get("https://quotes.everypizza.im/image/" + quoteId)
|
quote = requests.get("https://quotes.everypizza.im/image/" + quoteId)
|
||||||
if response.status_code == 200:
|
if quote.status_code == 200:
|
||||||
return response.content
|
return quote.content
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Reference in a new issue