Compare commits
2 commits
aae5967096
...
12a14f1a26
Author | SHA1 | Date | |
---|---|---|---|
12a14f1a26 | |||
91d017044b |
1 changed files with 6 additions and 1 deletions
7
fetch.py
7
fetch.py
|
@ -1,3 +1,8 @@
|
|||
import requests
|
||||
|
||||
def fetchQuote()
|
||||
def fetchQuote(quoteId):
|
||||
quote = requests.get("https://quotes.everypizza.im/image/" + quoteId)
|
||||
if quote.status_code == 200:
|
||||
return quote.content
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Add table
Reference in a new issue