forked from n/quotes-bot-python
fix
This commit is contained in:
parent
1cd71c8dab
commit
0c24d9491e
1 changed files with 2 additions and 2 deletions
4
fetch.py
4
fetch.py
|
@ -5,10 +5,10 @@ with open('config.json', 'r') as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
|
|
||||||
def fetchQuote(quoteId):
|
def fetchQuote(quoteId):
|
||||||
processedId = config['imag']['server'] + quoteId
|
processedId = str(config['imag']['server'] + quoteId)
|
||||||
quote = requests.get(processedId)
|
quote = requests.get(processedId)
|
||||||
if quote.status_code == 200:
|
if quote.status_code == 200:
|
||||||
# return quote.content
|
# return quote.content
|
||||||
return
|
return processedId
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Reference in a new issue