Compare commits
2 commits
4b8d8adc84
...
0f7ef3e3f6
Author | SHA1 | Date | |
---|---|---|---|
0f7ef3e3f6 | |||
5bc98f2470 |
2 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
"password": "hunter2"
|
"password": "hunter2"
|
||||||
},
|
},
|
||||||
"imag":{
|
"imag":{
|
||||||
|
"_comment": "Don't put a slash at an end of this. That took quite a bit of running around in circles to fix.",
|
||||||
"server": "https://quotes.example.com"
|
"server": "https://quotes.example.com"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
fetch.py
2
fetch.py
|
@ -5,7 +5,7 @@ with open('config.json', 'r') as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
|
|
||||||
def fetchQuote(quoteId):
|
def fetchQuote(quoteId):
|
||||||
processedId = str(config['imag']['server'] + quoteId)
|
processedId = str(config['imag']['server'] + "/image/" + quoteId)
|
||||||
# quote = requests.get(processedId)
|
# quote = requests.get(processedId)
|
||||||
#temporary
|
#temporary
|
||||||
code = 200
|
code = 200
|
||||||
|
|
Loading…
Add table
Reference in a new issue