Compare commits

..

2 commits

Author SHA1 Message Date
n
0f7ef3e3f6 Comment 2025-01-31 19:24:00 -06:00
n
5bc98f2470 oops 2025-01-31 19:22:13 -06:00
2 changed files with 2 additions and 1 deletions

View file

@ -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"
} }
} }

View file

@ -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